[Bug 1819728] Re: Please backport "fix race between daemon-reload and other commands #8803" to 16.04 (for UC16) and 18.04 (for UC18)
Michael Vogt
michael.vogt at canonical.com
Mon Mar 25 13:56:06 UTC 2019
This is now uploaded (together with #1816753) to xenial-proposed and is
currently in the UNAPPROVED queue).
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1819728
Title:
Please backport "fix race between daemon-reload and other commands
#8803" to 16.04 (for UC16) and 18.04 (for UC18)
Status in systemd package in Ubuntu:
Fix Released
Status in systemd source package in Xenial:
Triaged
Status in systemd source package in Bionic:
Fix Committed
Bug description:
[Impact]
On Ubuntu Core we recently hit the a race in daemon-reload and systemctl twice. This race is fixed in systemd upstream: "fix race between daemon-reload and other commands #8803" and a subsequent fix in "PR#11121".
Note that this is a general problem in systemd with daemon-reload and
systemctl commands, we just happen to hit it more often on Ubuntu Core
but the test-case below explodes just fine on a normal Ubuntu release
like 16.04 or 18.04 (not on 18.10+ as its fixed there).
[TEST CASE]
To reproduce its enough to run:
for i in $(seq 50); do
systemctl daemon-reload &
systemctl start ssh &
done
This will result in "systemctl start ssh" hanging in ppoll. With the
patch applied the hangs go away.
[REGRESSION POTENTIAL]
Medium/High, this change is already in the systemd upstream and in use disco and later but the backport required some manual resolving of conflicts the code because changed between 229,237 and the fixed code in 240. Its also
not fully clear if the fix relies on the new systemd "coldplug" functionality that was added in more recent git revisions.
The upstream fix is https://github.com/systemd/systemd/pull/8803 and
https://github.com/systemd/systemd/pull/11121
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1819728/+subscriptions
More information about the foundations-bugs
mailing list