systemd crashes when logging long message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Medium
|
Ioanna Alifieraki | ||
Bionic |
Fix Released
|
Medium
|
Ioanna Alifieraki | ||
Disco |
Fix Released
|
Undecided
|
Unassigned | ||
Eoan |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Systemd crashes when logging very long messages. This regression was introduced with
upstream commit d054f0a4d451 [1] due to xsprintf.
Commits e68eedbbdc98 [2] and 574432f889ce [3] replace some uses of xsprintf with
snprintf and fix it.
[Test Case]
# systemd-run --scope apt-get -q -y -o DPkg::Options:
# tail -f /var/log/syslog
...
Jan 22 12:50:33 bionic-kernel systemd[1]: Assertion 'xsprintf: buf[] must be big enough' failed at ../src/
Broadcast message from systemd-
systemd[1]: Caught <ABRT>, dumped core as pid 14620.
Broadcast message from systemd-
systemd[1]: Freezing execution.
Jan 22 12:50:33 bionic-kernel systemd[1]: Caught <ABRT>, dumped core as pid 14620.
Jan 22 12:50:33 bionic-kernel systemd[1]: Freezing execution.
[Regression Potential]
The patches replace xsprintf with snprintf and the regression potential is small.
Any regression would likely involve additional systemd crashes and/or truncated log/output messages.
[Other]
Only Bionic is affected.
[1] https:/
[2] https:/
[3] https:/
Changed in systemd (Ubuntu Bionic): | |
status: | New → Confirmed |
Changed in systemd (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in systemd (Ubuntu Bionic): | |
importance: | Undecided → Medium |
assignee: | nobody → Ioanna Alifieraki (joalif) |
Changed in systemd (Ubuntu): | |
assignee: | nobody → Ioanna Alifieraki (joalif) |
Changed in systemd (Ubuntu Disco): | |
status: | New → Fix Released |
Changed in systemd (Ubuntu Eoan): | |
status: | New → Fix Released |
Changed in systemd (Ubuntu): | |
status: | Confirmed → Fix Released |
tags: | added: ddstreet-next |
description: | updated |
Hello Ioanna, or anyone else affected,
Accepted systemd into bionic-proposed. The package will build now and be available at https:/ /launchpad. net/ubuntu/ +source/ systemd/ 237-3ubuntu10. 34 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification- needed- bionic to verification- done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed- bionic. In either case, without details of your testing we will not be able to proceed.
Further information regarding the verification process can be found at https:/ /wiki.ubuntu. com/QATeam/ PerformingSRUVe rification . Thank you in advance for helping!
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.