-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qubes-dom0-update: prevent concurrent execution #6345
qubes-dom0-update: prevent concurrent execution #6345
Comments
PR Submitted. Low priority for review |
The |
Ops. I did not foresee that. I will work on a fix. |
PR Submitted |
fixes: QubesOS/qubes-issues#6345 (cherry picked from commit a8ef30f)
Qubes OS version
R4.0
Affected component(s) or functionality
qubes-core-admin-linux:
qubes-dom0-update
Brief summary
Multiple instances of
qubes-dom0-update
may run concurrently (e.g.qubes-dom0-update --check-only
cron job running simultaneously with Qubes Updater), resulting in update cache corruption.How Reproducible
100%
To Reproduce
Steps to reproduce the behavior:
qubes-dom0-update
.qubes-dom0-update
.Expected behavior
Two instances of update command seralize with respect to each other.
Actual behavior
There are no attempts in synchronization, resulting in potential update data corruption.
Screenshots
TBD
Additional context
TBD
Solutions you've tried
Cleaning up cache every time such race condition happens is cumbersome.
Simplest solution would be to use locks to prevent concurrent invocation of
qubes-dom0-update
.Relevant documentation you've consulted
Related, non-duplicate issues
TBD
The text was updated successfully, but these errors were encountered: