#1023567 systemd-container: systemd-machined segfault 6 ABRT

Package:
systemd-container
Source:
systemd
Description:
systemd container/nspawn tools
Submitter:
udent
Date:
2023-04-07 10:06:07 UTC
Severity:
normal
Tags:
#1023567#5
Date:
2022-11-06 19:09:14 UTC
From:
To:
Dear Maintainer,

If you backup the systemd-machined default directory ("/var/lib/machines") with borgbackup,
 is one way to segfault systemd-machined.
Systemd State is now: degraded.

Backup the folder without crash, of course.

I test this little patch and it no longer crash:
https://github.com/codepeon/systemd/commit/1600b38cd2029533547f8c3d4abfa12911ca0630.patch
It apply to current stable release without Problems.
i test with "dpkg-source --commit" and "debuild -us -uc"

#1023567#10
Date:
2022-11-06 19:24:05 UTC
From:
To:
coredumpctl info 4647
           PID: 4647 (systemd-machine)
           UID: 0 (root)
           GID: 0 (root)
        Signal: 6 (ABRT)
     Timestamp: Sat 2022-11-05 21:26:17 CET (22h ago)
  Command Line: /lib/systemd/systemd-machined
    Executable: /usr/lib/systemd/systemd-machined
 Control Group: /system.slice/systemd-machined.service
          Unit: systemd-machined.service
         Slice: system.slice
       Boot ID:
    Machine ID:
      Hostname:
       Storage: /var/lib/systemd/coredump/core.systemd-machine.0.7facfe2e2aa94b8f8ac94aea47841804.4647.1667679977000000.zst
       Message: Process 4647 (systemd-machine) of user 0 dumped core.

                Stack trace of thread 4647:
                #0  0x000072ce4d324ce1 __GI_raise (libc.so.6 + 0x38ce1)
                #1  0x000072ce4d30e537 __GI_abort (libc.so.6 + 0x22537)
                #2  0x000072ce4d367768 __libc_message (libc.so.6 + 0x7b768)
                #3  0x000072ce4d36ea5a malloc_printerr (libc.so.6 + 0x82a5a)
                #4  0x000072ce4d370055 _int_free (libc.so.6 + 0x84055)
                #5  0x00005b800903bb41 n/a (systemd-machined + 0xdb41)
                #6  0x000072ce4d5bf5a2 varlink_process (libsystemd-shared-247.so + 0xf25a2)
                #7  0x000072ce4d5bfc66 n/a (libsystemd-shared-247.so + 0xf2c66)
                #8  0x000072ce4d68686a n/a (libsystemd-shared-247.so + 0x1b986a)
                #9  0x000072ce4d686ce1 sd_event_dispatch (libsystemd-shared-247.so + 0x1b9ce1)
                #10 0x000072ce4d688048 sd_event_run (libsystemd-shared-247.so + 0x1bb048)
                #11 0x000072ce4d54bb7c bus_event_loop_with_idle (libsystemd-shared-247.so + 0x7eb7c)
                #12 0x00005b80090369c0 n/a (systemd-machined + 0x89c0)
                #13 0x000072ce4d30fd0a __libc_start_main (libc.so.6 + 0x23d0a)
                #14 0x00005b8009036f1a n/a (systemd-machined + 0x8f1a)

#1023567#17
Date:
2022-11-07 11:26:49 UTC
From:
To:
Hi

Am 06.11.22 um 20:09 schrieb udent:


This patch has landed in v250, so I'm marking the issue as closed for
that version.
I assume by filing this against the bullseye package, you want to see
this fixed via a stable upload?

I tagged the bug report so it shows up at [1]. Should we make another
stable upload, we can consider this issue. The fix is small enough after
all.

Michael


[1]
https://bugs.debian.org/cgi-bin/pkgreport.cgi?users=pkg-systemd-maintainers@lists.alioth.debian.org;tag=bullseye-backport;dist=stable

#1023567#22
Date:
2023-04-07 10:02:22 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
systemd, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1023567@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Luca Boccassi <bluca@debian.org> (supplier of updated systemd package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Thu, 22 Dec 2022 12:55:42 +0100
Source: systemd
Architecture: source
Version: 247.3-7+deb11u2
Distribution: bullseye
Urgency: medium
Maintainer: Debian systemd Maintainers <pkg-systemd-maintainers@lists.alioth.debian.org>
Changed-By: Luca Boccassi <bluca@debian.org>
Closes: 1021579 1021644 1023567 1026831
Changes:
 systemd (247.3-7+deb11u2) bullseye; urgency=medium
 .
   [ Michael Biebl ]
   * ata_id: fix getting Response Code from SCSI Sense Data.
     (Closes: #1021579)
   * logind: fix getting property OnExternalPower via D-Bus (Closes:
     #1021644)
 .
   [ Luca Boccassi ]
   * Backport patch to fix CVE-2022-4415 (Closes: #1026831)
   * Backport patch to fix CVE-2022-3821
   * Backport patch to fix crash in systemd-machined (Closes: #1023567)
Checksums-Sha1:
 43e05e109592270750affe1022b9fa53d3b5ccdb 5224 systemd_247.3-7+deb11u2.dsc
 fdb0670dd927d40aefb3a096f8743e7445c46756 192860 systemd_247.3-7+deb11u2.debian.tar.xz
 e42ba5bd1deb033ead4c0d6c4df4b6ec951cd991 11709 systemd_247.3-7+deb11u2_source.buildinfo
Checksums-Sha256:
 d71f8653855b919efdf86269100384a47dd532d2cb39ffcbe5458805303beeec 5224 systemd_247.3-7+deb11u2.dsc
 27842e6f36805b6147b6c91bf31e51e2353cdeb3f7c5076fa8ba4b43e7ce582f 192860 systemd_247.3-7+deb11u2.debian.tar.xz
 8ffdc48228e7dd4baaaac9880a8e4375a5376e44e5427aa3873d928a317fbf45 11709 systemd_247.3-7+deb11u2_source.buildinfo
Files:
 44651c910635ed59548524192d32ba1e 5224 admin optional systemd_247.3-7+deb11u2.dsc
 40aca0dfcc4c5da585c0dade60a6552b 192860 admin optional systemd_247.3-7+deb11u2.debian.tar.xz
 6adf98a8a83f56a3ee41a5606975b502 11709 admin optional systemd_247.3-7+deb11u2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEErCSqx93EIPGOymuRKGv37813JB4FAmQpdKgRHGJsdWNhQGRl
Ymlhbi5vcmcACgkQKGv37813JB4iMA//YkmpMGuRML83wexbaorKGjbWwSRMlVi+
mkd8kVpk3FAkSJePNVZ8C0WQMyVeMBg0/9e9QTl5KDno/8hR20ST429TaNGknZ0L
PUftuRRVjBmdP02ehyIGAme9mFm58FGhqjoNxbShvRnb59e4cgshQ3PuDUBYepBj
Niy/CkFrkDQa0/dh26fQVb0s78qnr8cP5leVHmUY6M9qYUNH6L3PwUd+usJn7mMt
ugojNYLb7gau3aSbioTl3LeZbPD4194MHVLdbW8I/ZNZkNb41eu+nEOH+JiCtdp5
wr/Md46fEAux8hVQ+I2cIVYsIdFd930z3EHvFwuWHsoIEKj0DVoFWPsAxLLUusws
8a0dDSKDpUYVIwUHnbPIW34Fxq5cXKNmSWm74a/jQG+y1vyoGjhXtXmCzMZyyFO4
xlQ9WuoMNCHoD4th9iehdmx11ijNIHhp66+DM5gfv3Y8JJxZqabMZhNk2kQa19e+
qKRHYxIkugcMcGVhQxmRzprpFzeT29+vvMLW0VP0KSRbFdfOliPWzpNKWSmCXsY8
6d/iqTrhY8V6V2c3oEEppfu5jLWUqxrNzIZwUfeVXWZZWdtfEzAil0CQP6oXlc8a
uLa+z1YMJqEJ1NHg8rEhkhME+0F7JRrUkht37F4Vac7lu71oZDaZYQqGc6e9Upxl
dsNgt/iTsDo=
=Nq1f
-----END PGP SIGNATURE-----