[Sts-sponsors] [Bug 1860548] Re: systemd crashes when logging long message

2020-01-22 Thread Dan Streetman
** Description changed:

- [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 
+ 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::=--force-confold
  -o DPkg::Options::=--force-confdef --allow-unauthenticated install acl
  adduser amd64-microcode apt base-files base-passwd bash bash-completion
  bind9-host binfmt-support binutils-common binutils-x86-64-linux-gnu
  bsdmainutils bsdutils busybox-initramfs busybox-static bzip2 ca-
  certificates console-setup console-setup-linux coreutils cpio cpp cpp-7
  crda cron curl dash dbus dctrl-tools debconf debconf-i18n debianutils
  dictionaries-common diffutils dirmngr distro-info-data dmeventd dmsetup
  dnsmasq-base dnsutils dpkg e2fslibs e2fsprogs ed eject fakeroot fdisk
  file findutils friendly-recovery gawk gcc-7-base gcc-8-base gettext-base
  gir1.2-glib-2.0 gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-
  client gpg-wks-server gpgconf gpgsm gpgv grep groff-base grub-common
  grub-pc grub-pc-bin grub2-common gzip hostname info init init-system-
  helpers initramfs-tools initramfs-tools-bin initramfs-tools-core
  install-info intel-microcode iproute2 iptables iputils-ping iputils-
  tracepath irqbalance isc-dhcp-client isc-dhcp-common iso-codes iw
  keyboard-configuration keyutils klibc-utils kmod krb5-locales krb5-user
  language-pack-en language-pack-en-base language-pack-gnome-en language-
  pack-gnome-en-base less libaccountsservice0 libacl1 libapparmor1
  libargon2-0 libasan4 libasn1-8-heimdal libassuan0 libatm1 libatomic1
  libattr1 libaudit-common libaudit1  libbinutils libblkid1 libbsd0
  libbz2-1.0 libc-bin libc-dev-bin libc6 libc6-dev libcap-ng0 libcap2
  libcap2-bin libcc1-0 libcilkrts5 libcom-err2 libcryptsetup12
  libcurl3-gnutls libcurl4 libdb5.3 libdbus-1-3 libdebconfclient0
  libdevmapper-event1.02.1 libdevmapper1.02.1 libdpkg-perl libdrm-common
  libdrm2 libdumbnet1 libedit2 libelf1 libestr0 libevent-2.1-6 libexpat1
  libexpat1-dev libext2fs2 libfakeroot libfastjson4 libfdisk1 libffi6
  libfreetype6 libfribidi0 libfuse2 libgc1c2 libgcc-7-dev libgcc1
  libgcrypt20 libgdbm-compat4 libgeoip1 libgirepository-1.0-1 libglib2.0-0
  libglib2.0-data libgmp10 libgnutls30 libgomp1 libgpg-error0 libgpm2
  libgssapi-krb5-2 libgssapi3-heimdal libgssrpc4 libhcrypto4-heimdal
  libheimbase1-heimdal libheimntlm0-heimdal libhogweed4 libhx509-5-heimdal
  libitm1 libjs-jquery libjs-sphinxdoc libjs-underscore libk5crypto3
  libkadm5clnt-mit11 libkadm5srv-mit11 libkdb5-9 libkeyutils1 libkmod2
  libkrb5-26-heimdal libkrb5-3 libkrb5support0 libksba8 libldap-2.4-2
  libldap-common liblocale-gettext-perl liblsan0 liblz4-1 liblzma5
  libmagic-mgc libmagic1 libmnl0 libmount1 libmpc3 libmpdec2 libmpfr6
  libmpx2 libmspack0 libncurses5 libncursesw5 libnetfilter-conntrack3
  libnettle6 libnewt0.52 libnfnetlink0 libnfsidmap2 libnghttp2-14
  libnl-3-200 libnl-genl-3-200 libnorm1 libnpth0 libnss-systemd libnuma1
  libp11-kit0 libpam-cap libpam-krb5 libpam-modules libpam-modules-bin
  libpam-runtime libpam-systemd libpam0g libparted2 libpcap0.8 libpci3
  libpcre3 libpgm-5.2-0 libpipeline1 libplymouth4 libpng16-16 libpolkit-
  gobject-1-0 libpopt0 libpsl5 libpython-all-dev libpython-dev libpython-
  stdlib libpython2.7 libpython2.7-dev libpython2.7-minimal
  
- 
  # tail -f /var/log/syslog
  ...
  Jan 22 12:50:33 bionic-kernel systemd[1]: Assertion 'xsprintf: buf[] must be 
big enough' failed at ../src/core/job.c:803, function job_log_status_message(). 
Aborting.
  
  Broadcast message from systemd-journald@bionic-kernel (Wed 2020-01-22
  12:50:33 UTC):
  
  systemd[1]: Caught , dumped core as pid 14620.
  
- 
- Broadcast message from systemd-journald@bionic-kernel (Wed 2020-01-22 
12:50:33 UTC):
+ Broadcast message from systemd-journald@bionic-kernel (Wed 2020-01-22
+ 12:50:33 UTC):
  
  systemd[1]: Freezing execution.
  
  Jan 22 12:50:33 bionic-kernel systemd[1]: Caught , 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://github.com/systemd/systemd/issues/4534
- [2] 
https://github.com/systemd/systemd/commit/e68eedbbdc98fa13449756b7fee3bed689d76493
 
+ [2] 
https://github.com/systemd/systemd/commit/e68eedbbdc98fa13449756b7fee3bed689d76493
  [3] 
https://github.com/systemd/systemd/commit/574432f889ce3de126bbc6736bcbd22ee170ff82

-- 
You received this bug notification because you are a member of STS
Sponsors, which is subscrib

[Sts-sponsors] [Bug 1847924] Re: Introduce broken state parsing to mdadm

2020-01-22 Thread Dan Streetman
** Tags removed: sts-sponsor-ddstreet

** Tags removed: sts-sponsor

-- 
You received this bug notification because you are a member of STS
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1847924

Title:
  Introduce broken state parsing to mdadm

Status in mdadm package in Ubuntu:
  Fix Released
Status in mdadm source package in Bionic:
  Fix Committed
Status in mdadm source package in Disco:
  Won't Fix
Status in mdadm source package in Eoan:
  Fix Committed
Status in mdadm source package in Focal:
  Fix Released
Status in mdadm package in Debian:
  New

Bug description:
  [Impact]

  * Currently, mounted raid0/md-linear arrays have no indication/warning
  when one or more members are removed or suffer from some non-
  recoverable error condition. The mdadm tool shows "clean" state
  regardless if a member was removed.

  * The patch proposed in this SRU addresses this issue by introducing a
  new state "broken", which is analog to "clean" but indicates that
  array is not in a good/correct state. The commit, available upstream
  as 43ebc910 ("mdadm: Introduce new array state 'broken' for
  raid0/linear") [0], was extensively discussed and received a good
  amount of reviews/analysis by both the current mdadm maintainer as
  well as an old maintainer.

  * One important note here is that this patch requires a counter-part in the 
kernel to be fully functional, which was SRUed in LP: #1847773.
  It works fine/transparently without this kernel counter-part though.

  * We had reports of users testing a scenario of failed raid0 arrays,
  and getting 'clean' in mdadm proved to cause confusion and doesn't
  help on noticing something went wrong with the arrays.

  * The potential situation this patch (with its kernel counter-part)
  addresses is: an user has raid0/linear array, and it's mounted. If one
  member fails and gets removed (either physically, like a power or
  firmware issue, or in software, like a driver-induced removal due to
  detected failure), _without_ this patch (and its kernel counter-part)
  there's nothing to let user know it failed, except filesystem errors
  in dmesg. Also, non-direct writes to the filesystem will succeed, due
  to how page-cache/writeback work; even a 'sync' command run will
  succeed.

  * The case described in above bullet was tested and the writes to
  failed devices succeeded - after a reboot, the files written were
  present in the array, but corrupted. An user wouldn't noticed that
  unless if the writes were directed or some checksum was performed in
  the files. With this patch (and its kernel counter-part), the writes
  to such failed raid0/linear array are fast-failed and the filesystem
  goes read-only quickly.

  [Test case]

  * To test this patch, create a raid0 or linear md array on Linux using
  mdadm, like: "mdadm --create md0 --level=0 --raid-devices=2
  /dev/nvme0n1 /dev/nvme1n1";

  * Format the array using a FS of your choice (for example ext4) and
  mount the array;

  * Remove one member of the array, for example using sysfs interface
  (for nvme: echo 1 > /sys/block/nvme0n1/device/device/remove, for scsi:
  echo 1 > /sys/block/sdX/device/delete);

  * Without this patch, the array state shown by "mdadm --detail" is
  "clean", regardless a member is missing/failed.

  [Regression potential]

  * There are mainly two potential regressions here; the first is user-
  visible changes introduced by this mdadm patch. The second is if the
  patch itself has some unnoticed bug.

  * For the first type of potential regression: this patch introduces a
  change in how the array state is displayed in "mdadm --detail "
  output for raid0/linear arrays *only*. Currently, the tool shows just
  2 states, "clean" or "active". In the patch being SRUed here, this
  changes for raid0/linear arrays to read the sysfs array state instead.
  So for example, we could read "readonly" state here for raid0/linear
  if the user (or some tool) changes the array to such state. This only
  affects raid0/linear, the output for other levels didn't change at
  all.

  * Regarding potential unnoticed issues in the code, we changed mainly
  structs and the "detail" command. Structs were incremented with the
  new "broken" state and the detail output was changed for raid0/linear
  as discussed in the previous bullet.

  * Note that we *proactively* skipped Xenial SRU here, in order to
  prevent potential regressions - Xenial mdadm tool lacks code
  infrastructure used by this patch, so the decision was for
  safety/stability, by only SRUing Bionic / Disco / Eoan mdadm versions.

  [0]
  https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=43ebc910

  [other info]

  The last mdadm upload for bug 1850540 added changes that depend on as-
  yet unreleased kernel changes, and thus blocks any further release of
  mdadm until the next Bionic point release; see bug 1850540 comment 11.
  So, this bug (and all future mdadm bugs for Bionic, until the 

[Sts-sponsors] [Bug 1860548] Re: systemd crashes when logging long message

2020-01-22 Thread Dan Streetman
** Tags added: ddstreet-next

-- 
You received this bug notification because you are a member of STS
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1860548

Title:
  systemd crashes when logging long message

Status in systemd package in Ubuntu:
  Fix Released
Status in systemd source package in Bionic:
  Confirmed
Status in systemd source package in Disco:
  Fix Released
Status in systemd source package in Eoan:
  Fix Released

Bug description:
  [Description]

  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::=--force-confold
  -o DPkg::Options::=--force-confdef --allow-unauthenticated install acl
  adduser amd64-microcode apt base-files base-passwd bash bash-
  completion bind9-host binfmt-support binutils-common binutils-x86-64
  -linux-gnu bsdmainutils bsdutils busybox-initramfs busybox-static
  bzip2 ca-certificates console-setup console-setup-linux coreutils cpio
  cpp cpp-7 crda cron curl dash dbus dctrl-tools debconf debconf-i18n
  debianutils dictionaries-common diffutils dirmngr distro-info-data
  dmeventd dmsetup dnsmasq-base dnsutils dpkg e2fslibs e2fsprogs ed
  eject fakeroot fdisk file findutils friendly-recovery gawk gcc-7-base
  gcc-8-base gettext-base gir1.2-glib-2.0 gnupg gnupg-l10n gnupg-utils
  gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv grep
  groff-base grub-common grub-pc grub-pc-bin grub2-common gzip hostname
  info init init-system-helpers initramfs-tools initramfs-tools-bin
  initramfs-tools-core install-info intel-microcode iproute2 iptables
  iputils-ping iputils-tracepath irqbalance isc-dhcp-client isc-dhcp-
  common iso-codes iw keyboard-configuration keyutils klibc-utils kmod
  krb5-locales krb5-user language-pack-en language-pack-en-base
  language-pack-gnome-en language-pack-gnome-en-base less
  libaccountsservice0 libacl1 libapparmor1 libargon2-0 libasan4
  libasn1-8-heimdal libassuan0 libatm1 libatomic1 libattr1 libaudit-
  common libaudit1  libbinutils libblkid1 libbsd0 libbz2-1.0 libc-bin
  libc-dev-bin libc6 libc6-dev libcap-ng0 libcap2 libcap2-bin libcc1-0
  libcilkrts5 libcom-err2 libcryptsetup12 libcurl3-gnutls libcurl4
  libdb5.3 libdbus-1-3 libdebconfclient0 libdevmapper-event1.02.1
  libdevmapper1.02.1 libdpkg-perl libdrm-common libdrm2 libdumbnet1
  libedit2 libelf1 libestr0 libevent-2.1-6 libexpat1 libexpat1-dev
  libext2fs2 libfakeroot libfastjson4 libfdisk1 libffi6 libfreetype6
  libfribidi0 libfuse2 libgc1c2 libgcc-7-dev libgcc1 libgcrypt20
  libgdbm-compat4 libgeoip1 libgirepository-1.0-1 libglib2.0-0
  libglib2.0-data libgmp10 libgnutls30 libgomp1 libgpg-error0 libgpm2
  libgssapi-krb5-2 libgssapi3-heimdal libgssrpc4 libhcrypto4-heimdal
  libheimbase1-heimdal libheimntlm0-heimdal libhogweed4
  libhx509-5-heimdal libitm1 libjs-jquery libjs-sphinxdoc libjs-
  underscore libk5crypto3 libkadm5clnt-mit11 libkadm5srv-mit11 libkdb5-9
  libkeyutils1 libkmod2 libkrb5-26-heimdal libkrb5-3 libkrb5support0
  libksba8 libldap-2.4-2 libldap-common liblocale-gettext-perl liblsan0
  liblz4-1 liblzma5 libmagic-mgc libmagic1 libmnl0 libmount1 libmpc3
  libmpdec2 libmpfr6 libmpx2 libmspack0 libncurses5 libncursesw5
  libnetfilter-conntrack3 libnettle6 libnewt0.52 libnfnetlink0
  libnfsidmap2 libnghttp2-14  libnl-3-200 libnl-genl-3-200 libnorm1
  libnpth0 libnss-systemd libnuma1 libp11-kit0 libpam-cap libpam-krb5
  libpam-modules libpam-modules-bin libpam-runtime libpam-systemd
  libpam0g libparted2 libpcap0.8 libpci3 libpcre3 libpgm-5.2-0
  libpipeline1 libplymouth4 libpng16-16 libpolkit-gobject-1-0 libpopt0
  libpsl5 libpython-all-dev libpython-dev libpython-stdlib libpython2.7
  libpython2.7-dev libpython2.7-minimal

  
  # tail -f /var/log/syslog
  ...
  Jan 22 12:50:33 bionic-kernel systemd[1]: Assertion 'xsprintf: buf[] must be 
big enough' failed at ../src/core/job.c:803, function job_log_status_message(). 
Aborting.

  Broadcast message from systemd-journald@bionic-kernel (Wed 2020-01-22
  12:50:33 UTC):

  systemd[1]: Caught , dumped core as pid 14620.

  
  Broadcast message from systemd-journald@bionic-kernel (Wed 2020-01-22 
12:50:33 UTC):

  systemd[1]: Freezing execution.

  Jan 22 12:50:33 bionic-kernel systemd[1]: Caught , 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.

  [Other]

  Only Bionic is affected.

  [1] https://github.com/systemd/systemd/issues/4534
  [2] 
https://github.com/systemd/systemd/commit/e68eedbbdc98fa13449756b7fee3bed689d76493
 
  [3] 
https://github.com/systemd/systemd/commit/574432f889ce3de126bbc6736bcbd22ee170ff82

To manage notifications about this bug go to:
ht

[Sts-sponsors] [Bug 1860548] Re: systemd crashes when logging long message

2020-01-22 Thread Ioanna Alifieraki
** Patch added: "debdiff for bionic"
   
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1860548/+attachment/5322196/+files/lp1860548_bionic.debdiff

** Tags added: sts sts-sponsor-ddstreet

-- 
You received this bug notification because you are a member of STS
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1860548

Title:
  systemd crashes when logging long message

Status in systemd package in Ubuntu:
  Fix Released
Status in systemd source package in Bionic:
  Confirmed
Status in systemd source package in Disco:
  Fix Released
Status in systemd source package in Eoan:
  Fix Released

Bug description:
  [Description]

  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::=--force-confold
  -o DPkg::Options::=--force-confdef --allow-unauthenticated install acl
  adduser amd64-microcode apt base-files base-passwd bash bash-
  completion bind9-host binfmt-support binutils-common binutils-x86-64
  -linux-gnu bsdmainutils bsdutils busybox-initramfs busybox-static
  bzip2 ca-certificates console-setup console-setup-linux coreutils cpio
  cpp cpp-7 crda cron curl dash dbus dctrl-tools debconf debconf-i18n
  debianutils dictionaries-common diffutils dirmngr distro-info-data
  dmeventd dmsetup dnsmasq-base dnsutils dpkg e2fslibs e2fsprogs ed
  eject fakeroot fdisk file findutils friendly-recovery gawk gcc-7-base
  gcc-8-base gettext-base gir1.2-glib-2.0 gnupg gnupg-l10n gnupg-utils
  gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv grep
  groff-base grub-common grub-pc grub-pc-bin grub2-common gzip hostname
  info init init-system-helpers initramfs-tools initramfs-tools-bin
  initramfs-tools-core install-info intel-microcode iproute2 iptables
  iputils-ping iputils-tracepath irqbalance isc-dhcp-client isc-dhcp-
  common iso-codes iw keyboard-configuration keyutils klibc-utils kmod
  krb5-locales krb5-user language-pack-en language-pack-en-base
  language-pack-gnome-en language-pack-gnome-en-base less
  libaccountsservice0 libacl1 libapparmor1 libargon2-0 libasan4
  libasn1-8-heimdal libassuan0 libatm1 libatomic1 libattr1 libaudit-
  common libaudit1  libbinutils libblkid1 libbsd0 libbz2-1.0 libc-bin
  libc-dev-bin libc6 libc6-dev libcap-ng0 libcap2 libcap2-bin libcc1-0
  libcilkrts5 libcom-err2 libcryptsetup12 libcurl3-gnutls libcurl4
  libdb5.3 libdbus-1-3 libdebconfclient0 libdevmapper-event1.02.1
  libdevmapper1.02.1 libdpkg-perl libdrm-common libdrm2 libdumbnet1
  libedit2 libelf1 libestr0 libevent-2.1-6 libexpat1 libexpat1-dev
  libext2fs2 libfakeroot libfastjson4 libfdisk1 libffi6 libfreetype6
  libfribidi0 libfuse2 libgc1c2 libgcc-7-dev libgcc1 libgcrypt20
  libgdbm-compat4 libgeoip1 libgirepository-1.0-1 libglib2.0-0
  libglib2.0-data libgmp10 libgnutls30 libgomp1 libgpg-error0 libgpm2
  libgssapi-krb5-2 libgssapi3-heimdal libgssrpc4 libhcrypto4-heimdal
  libheimbase1-heimdal libheimntlm0-heimdal libhogweed4
  libhx509-5-heimdal libitm1 libjs-jquery libjs-sphinxdoc libjs-
  underscore libk5crypto3 libkadm5clnt-mit11 libkadm5srv-mit11 libkdb5-9
  libkeyutils1 libkmod2 libkrb5-26-heimdal libkrb5-3 libkrb5support0
  libksba8 libldap-2.4-2 libldap-common liblocale-gettext-perl liblsan0
  liblz4-1 liblzma5 libmagic-mgc libmagic1 libmnl0 libmount1 libmpc3
  libmpdec2 libmpfr6 libmpx2 libmspack0 libncurses5 libncursesw5
  libnetfilter-conntrack3 libnettle6 libnewt0.52 libnfnetlink0
  libnfsidmap2 libnghttp2-14  libnl-3-200 libnl-genl-3-200 libnorm1
  libnpth0 libnss-systemd libnuma1 libp11-kit0 libpam-cap libpam-krb5
  libpam-modules libpam-modules-bin libpam-runtime libpam-systemd
  libpam0g libparted2 libpcap0.8 libpci3 libpcre3 libpgm-5.2-0
  libpipeline1 libplymouth4 libpng16-16 libpolkit-gobject-1-0 libpopt0
  libpsl5 libpython-all-dev libpython-dev libpython-stdlib libpython2.7
  libpython2.7-dev libpython2.7-minimal

  
  # tail -f /var/log/syslog
  ...
  Jan 22 12:50:33 bionic-kernel systemd[1]: Assertion 'xsprintf: buf[] must be 
big enough' failed at ../src/core/job.c:803, function job_log_status_message(). 
Aborting.

  Broadcast message from systemd-journald@bionic-kernel (Wed 2020-01-22
  12:50:33 UTC):

  systemd[1]: Caught , dumped core as pid 14620.

  
  Broadcast message from systemd-journald@bionic-kernel (Wed 2020-01-22 
12:50:33 UTC):

  systemd[1]: Freezing execution.

  Jan 22 12:50:33 bionic-kernel systemd[1]: Caught , 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.

  [Other]

  Only Bionic is affected.

  [1] https://github.com/systemd/systemd/issues/4534
  [2] 
https://github.com/systemd/systemd/commit/e68eedbbdc98fa

[Sts-sponsors] [Bug 1860548] [NEW] systemd crashes when logging long message

2020-01-22 Thread Launchpad Bug Tracker
You have been subscribed to a public bug by Ioanna Alifieraki (joalif):

[Description]

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::=--force-confold
-o DPkg::Options::=--force-confdef --allow-unauthenticated install acl
adduser amd64-microcode apt base-files base-passwd bash bash-completion
bind9-host binfmt-support binutils-common binutils-x86-64-linux-gnu
bsdmainutils bsdutils busybox-initramfs busybox-static bzip2 ca-
certificates console-setup console-setup-linux coreutils cpio cpp cpp-7
crda cron curl dash dbus dctrl-tools debconf debconf-i18n debianutils
dictionaries-common diffutils dirmngr distro-info-data dmeventd dmsetup
dnsmasq-base dnsutils dpkg e2fslibs e2fsprogs ed eject fakeroot fdisk
file findutils friendly-recovery gawk gcc-7-base gcc-8-base gettext-base
gir1.2-glib-2.0 gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-
client gpg-wks-server gpgconf gpgsm gpgv grep groff-base grub-common
grub-pc grub-pc-bin grub2-common gzip hostname info init init-system-
helpers initramfs-tools initramfs-tools-bin initramfs-tools-core
install-info intel-microcode iproute2 iptables iputils-ping iputils-
tracepath irqbalance isc-dhcp-client isc-dhcp-common iso-codes iw
keyboard-configuration keyutils klibc-utils kmod krb5-locales krb5-user
language-pack-en language-pack-en-base language-pack-gnome-en language-
pack-gnome-en-base less libaccountsservice0 libacl1 libapparmor1
libargon2-0 libasan4 libasn1-8-heimdal libassuan0 libatm1 libatomic1
libattr1 libaudit-common libaudit1  libbinutils libblkid1 libbsd0
libbz2-1.0 libc-bin libc-dev-bin libc6 libc6-dev libcap-ng0 libcap2
libcap2-bin libcc1-0 libcilkrts5 libcom-err2 libcryptsetup12
libcurl3-gnutls libcurl4 libdb5.3 libdbus-1-3 libdebconfclient0
libdevmapper-event1.02.1 libdevmapper1.02.1 libdpkg-perl libdrm-common
libdrm2 libdumbnet1 libedit2 libelf1 libestr0 libevent-2.1-6 libexpat1
libexpat1-dev libext2fs2 libfakeroot libfastjson4 libfdisk1 libffi6
libfreetype6 libfribidi0 libfuse2 libgc1c2 libgcc-7-dev libgcc1
libgcrypt20 libgdbm-compat4 libgeoip1 libgirepository-1.0-1 libglib2.0-0
libglib2.0-data libgmp10 libgnutls30 libgomp1 libgpg-error0 libgpm2
libgssapi-krb5-2 libgssapi3-heimdal libgssrpc4 libhcrypto4-heimdal
libheimbase1-heimdal libheimntlm0-heimdal libhogweed4 libhx509-5-heimdal
libitm1 libjs-jquery libjs-sphinxdoc libjs-underscore libk5crypto3
libkadm5clnt-mit11 libkadm5srv-mit11 libkdb5-9 libkeyutils1 libkmod2
libkrb5-26-heimdal libkrb5-3 libkrb5support0 libksba8 libldap-2.4-2
libldap-common liblocale-gettext-perl liblsan0 liblz4-1 liblzma5
libmagic-mgc libmagic1 libmnl0 libmount1 libmpc3 libmpdec2 libmpfr6
libmpx2 libmspack0 libncurses5 libncursesw5 libnetfilter-conntrack3
libnettle6 libnewt0.52 libnfnetlink0 libnfsidmap2 libnghttp2-14
libnl-3-200 libnl-genl-3-200 libnorm1 libnpth0 libnss-systemd libnuma1
libp11-kit0 libpam-cap libpam-krb5 libpam-modules libpam-modules-bin
libpam-runtime libpam-systemd libpam0g libparted2 libpcap0.8 libpci3
libpcre3 libpgm-5.2-0 libpipeline1 libplymouth4 libpng16-16 libpolkit-
gobject-1-0 libpopt0 libpsl5 libpython-all-dev libpython-dev libpython-
stdlib libpython2.7 libpython2.7-dev libpython2.7-minimal


# tail -f /var/log/syslog
...
Jan 22 12:50:33 bionic-kernel systemd[1]: Assertion 'xsprintf: buf[] must be 
big enough' failed at ../src/core/job.c:803, function job_log_status_message(). 
Aborting.

Broadcast message from systemd-journald@bionic-kernel (Wed 2020-01-22
12:50:33 UTC):

systemd[1]: Caught , dumped core as pid 14620.


Broadcast message from systemd-journald@bionic-kernel (Wed 2020-01-22 12:50:33 
UTC):

systemd[1]: Freezing execution.

Jan 22 12:50:33 bionic-kernel systemd[1]: Caught , 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.

[Other]

Only Bionic is affected.

[1] https://github.com/systemd/systemd/issues/4534
[2] 
https://github.com/systemd/systemd/commit/e68eedbbdc98fa13449756b7fee3bed689d76493
 
[3] 
https://github.com/systemd/systemd/commit/574432f889ce3de126bbc6736bcbd22ee170ff82

** Affects: systemd (Ubuntu)
 Importance: Medium
 Assignee: Ioanna Alifieraki (joalif)
 Status: Fix Released

** Affects: systemd (Ubuntu Bionic)
 Importance: Medium
 Assignee: Ioanna Alifieraki (joalif)
 Status: Confirmed

** Affects: systemd (Ubuntu Disco)
 Importance: Undecided
 Status: Fix Released

** Affects: systemd (Ubuntu Eoan)
 Importance: Undecided
 Status: Fix Released

-- 
systemd crashes when logging long message 
https://bugs.launchpad.net/bugs/1860548
You received this bug notification because you are a member of STS Sponsors,