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 45086632+apple-ouy...@users.noreply.github.com
 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

Reply via email to