Your message dated Sat, 11 Jan 2025 14:52:00 +0000
with message-id <[email protected]>
and subject line Bug#1092450: fixed in rsyslog 8.2302.0-1+deb12u1
has caused the Debian Bug report #1092450,
regarding rsyslog: In the init path, rsyslogd crashes with segfault on receipt
of SIGTERM in rsyslogdDoDie() as runConf is NULL
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1092450: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1092450
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: rsyslog
Version: 8.1901.0-1+deb10u2
Severity: important
Dear Maintainer,
This issue has been fixed in the upstream version by Wang Haitao as
detailed below
Could you please backport it to Debian Bookworm?
==
git log rsyslogd.c
commit d38e4b7bfc5bd0137914859837dcc04076b9e1ea
Author: Wang Haitao [email protected]
Date: Fri Sep 20 17:50:37 2024 +0800
Fix runConf NULL pointer refence
`systemd restart rsyslog` in the early start of OS will let rsyslog
segmentation fault.
This cmd will send sigTerm to rsylogd, and rsyslogd will handle the signal
in rsyslogdDoDie.
If the rsyslogd havn't parse the conf, the runConf will be NULL
So check the pointer before reference it.
==
Backtrace ::
(gdb) bt
#0 rsyslogdDoDie (sig=15) at ./tools/rsyslogd.c:1837
#1 <signal handler called>
#2 0x00007f320925211f in __libc_sigaction () from
/lib/x86_64-linux-gnu/libc.so.6
#3 0x000055dba54f6a9b in hdlr_enable (sig=sig@entry=17,
hdlr=hdlr@entry=0x55dba54f6880 <hdlr_sigchld>) at
./tools/rsyslogd.c:1251
#4 0x000055dba54f8574 in initAll (argc=<optimized out>, argv=<optimized
out>) at ./tools/rsyslogd.c:1640
#5 0x000055dba54f60a9 in main (argc=3, argv=0x55dba555921c) at
./tools/rsyslogd.c:2213
(gdb) f 0
#0 rsyslogdDoDie (sig=15) at ./tools/rsyslogd.c:1837
1837 in ./tools/rsyslogd.c
(gdb) p runConf
$1 = (rsconf_t *) 0x0
==
-- System Information:
Debian Release: 10.13
APT prefers oldoldstable-updates
APT policy: (500, 'oldoldstable-updates'), (500, 'oldoldstable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-27-amd64 (SMP w/40 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages rsyslog depends on:
ii init-system-helpers 1.56+nmu1
ii libc6 2.28-10+deb10u4
ii libestr0 0.1.10-2.1
ii libfastjson4 0.99.8-2+deb10u1
ii liblognorm5 2.0.5-1
ii libsystemd0 241-7~deb10u11
ii libuuid1 2.33.1-0.1+deb10u1
ii lsb-base 10.2019051400
ii zlib1g 1:1.2.11.dfsg-1+deb10u2
Versions of packages rsyslog recommends:
ii logrotate 3.14.0-4
Versions of packages rsyslog suggests:
pn rsyslog-doc <none>
pn rsyslog-gnutls <none>
pn rsyslog-gssapi <none>
pn rsyslog-mongodb <none>
pn rsyslog-mysql | rsyslog-pgsql <none>
pn rsyslog-relp <none>
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: rsyslog
Source-Version: 8.2302.0-1+deb12u1
Done: Michael Biebl <[email protected]>
We believe that the bug you reported is fixed in the latest version of
rsyslog, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Michael Biebl <[email protected]> (supplier of updated rsyslog 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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 08 Jan 2025 19:13:05 +0100
Source: rsyslog
Architecture: source
Version: 8.2302.0-1+deb12u1
Distribution: bookworm
Urgency: medium
Maintainer: Michael Biebl <[email protected]>
Changed-By: Michael Biebl <[email protected]>
Closes: 1092450
Changes:
rsyslog (8.2302.0-1+deb12u1) bookworm; urgency=medium
.
* Fix runConf NULL pointer reference.
If rsyslogd hasn't fully parsed its configuration, runConf will be NULL.
Receiving a SIGTERM at this point will trigger a segmentation fault.
So check the pointer before referencing it to allow for a clean restart.
Patch cherry-picked from upstream Git. (Closes: #1092450)
* Switch debian-branch to debian/bookworm
Checksums-Sha1:
0b57e5d815228e1603db8a90785b90493837cfbf 3282 rsyslog_8.2302.0-1+deb12u1.dsc
5d19da60406a0f803de2481536b3e1bece857204 29584
rsyslog_8.2302.0-1+deb12u1.debian.tar.xz
4b5b75e391c68cebf715d04c1daac4925da3f1a6 7773
rsyslog_8.2302.0-1+deb12u1_source.buildinfo
Checksums-Sha256:
ff4787f987ef79570284c679c7c7fe7d7e70ea9df440ff7bad0a5ee889442b92 3282
rsyslog_8.2302.0-1+deb12u1.dsc
9bc431c546fe114e062620049257fa7867c2ef7f5219f288848fb5a8bf321f9e 29584
rsyslog_8.2302.0-1+deb12u1.debian.tar.xz
52e040b96793c72bf8e4db84b13325fb958107bbcee3b49779b0a5f2f7d01160 7773
rsyslog_8.2302.0-1+deb12u1_source.buildinfo
Files:
050026822ffe4643fa39fc71c3bdcd5b 3282 admin optional
rsyslog_8.2302.0-1+deb12u1.dsc
6cda93575ddb02e81bc4a69bc190bd70 29584 admin optional
rsyslog_8.2302.0-1+deb12u1.debian.tar.xz
296075cf8688f8572ce6048615767812 7773 admin optional
rsyslog_8.2302.0-1+deb12u1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEECbOsLssWnJBDRcxUauHfDWCPItwFAmd+w+gACgkQauHfDWCP
ItwoJg//dY8n91YdYCMZH1DuLVkOMxEtTN5GqdleQ523dgBq9P/KjKDncLtypuay
oaJfQdP2TbyJGMguCckIKndxnr3uwQx49YvUVi8UmC+KTJWVERrb30iC59gee4HD
TEVI66wk2xmVYSah9ckAEtBXhdQ7+CpOBdwdT6nAE2OrXcSTkc3/zZZLfxg3bekK
Bl0vf/iCp0Ly2HjGWN2/s8KZXAqDV/UsAGYkC9rzyLbiiPj1tj2fqdM8XkgE9q5G
IufIdPPjDFx0W3pM6QpeuQiWRwXiWJGxCtfLFxNOOZcXJ6aPdQxqhM1QeEISxeiI
Lup7XaCfzJ2Uupo23WO3M0TmyEbusD+AZGXOZftTM25mL7SmV/lesmZSUrEVgeMM
3ZvLTlfPJcGRHsQEqkvgzCJREQ7STt81Z5MbL+i8JRszm/ha1NLyHdGqtNpI3FD3
GeZX+fquHQLsJ4G6OyHoGWsdxEf1hghKL6xV/bfvGOWS0OjhZD9EnFxs7rmjYfM2
eSW/eEJOh/0j73LnGIkNEwxLwmCqK7OMQ4U3zI1obHpoFHRXg5bRhiHNjZJLszTR
0KRbePxUly9+wVUKlQaWuKdZAc9PIiO6RJpDxAYQf+F4JDpmhQMNMn6MoZoVF5o6
G0ujnU1FHw4HyPPXbsFMUw+1bado1L4dPo3H42kibFN0gtrBCOw=
=Tgw1
-----END PGP SIGNATURE-----
pgpL2OFSjc5DV.pgp
Description: PGP signature
--- End Message ---