Bug#925393: needrestart doesn't detect changed hwdb.bin of udev
tho...@fiasko-nw.net hat am Do 28. Mär, 10:17 (+0100) geschrieben: > On Sun, 24 Mar 2019, Jörg Sommer wrote: > > > Package: needrestart > > Version: 3.4-1 > > Severity: normal > > > > Hi, > > > > *needrestart* doesn't detect any processes running with outdated files, > > does it detect *nothing* or does it just fail with systemd-udev? It only fails in this case with this file. > > but *systemd-udev* uses a deleted file and hence, needs a restart. > > Could you please provide the corresponding lines from /proc/$PID/maps (i.e. > grep hwdb.bin /proc/417/maps)? ``` # grep hwdb.bin /proc/`pidof systemd-udevd`/maps 7f88173c1000-7f8817d38000 r--s fe:01 1305942 /usr/lib/udev/hwdb.bin (deleted) ``` Regards Jörg -- Angenehme Worte sind nie wahr, wahre Worte sind nie angenehm. signature.asc Description: PGP signature
Bug#925393: needrestart doesn't detect changed hwdb.bin of udev
tags 925393 moreinfo thanks Hi Jörg, On Sun, 24 Mar 2019, Jörg Sommer wrote: Package: needrestart Version: 3.4-1 Severity: normal Hi, *needrestart* doesn't detect any processes running with outdated files, does it detect *nothing* or does it just fail with systemd-udev? but *systemd-udev* uses a deleted file and hence, needs a restart. Could you please provide the corresponding lines from /proc/$PID/maps (i.e. grep hwdb.bin /proc/417/maps)? Regards, Thomas Regards Jörg ``` # needrestart -v [main] eval /etc/needrestart/needrestart.conf [main] needrestart v3.4 [main] running in root mode [Core] Using UI 'NeedRestart::UI::stdio'... [main] systemd detected [Core] #714 is a NeedRestart::Interp::Python [Python] #714: source=/usr/bin/xandikos [Core] #2975 is a NeedRestart::Interp::Python [Python] #2975: source=/usr/bin/reportbug [uCode/Intel] current revision: 0x25 + iucode_tool --scan-system + grep -oE [^[:space:]]+$ + sig=0x000306c3 + [ -r /sys/devices/system/cpu/cpu0/microcode/processor_flags ] + cat /sys/devices/system/cpu/cpu0/microcode/processor_flags + filter=-s 0x000306c3,0x20 + type bsdtar + IUCODE_TOOL_EXTRA_OPTIONS= + test -r /etc/default/intel-microcode + . /etc/default/intel-microcode + test = no + [ -r /usr/share/misc/intel-microcode* ] + iucode_tool -l -s 0x000306c3,0x20 --ignore-broken -tb /lib/firmware/intel-ucode + grep 0x000306c3 [uCode/Intel] available revision: 0x0025 [Kernel] Linux: kernel release 4.20.0-trunk-amd64, kernel version #1 SMP Debian 4.20-1~exp1 (2018-12-24) [Kernel/Linux] /boot/vmlinuz-4.20.0-trunk-amd64 => 4.20.0-trunk-amd64 (debian-ker...@lists.debian.org) #1 SMP Debian 4.20-1~exp1 (2018-12-24) [4.20.0-trunk-amd64]* [Kernel/Linux] /boot/vmlinuz-4.19.0-4-amd64 => 4.19.0-4-amd64 (debian-ker...@lists.debian.org) #1 SMP Debian 4.19.28-2 (2019-03-15) [4.19.0-4-amd64] [Kernel/Linux] /boot/vmlinuz-4.19.0-3-amd64 => 4.19.0-3-amd64 (debian-ker...@lists.debian.org) #1 SMP Debian 4.19.20-1 (2019-02-11) [4.19.0-3-amd64] [Kernel/Linux] /boot/vmlinuz-4.19.0-rc7-amd64 => 4.19.0-rc7-amd64 (debian-ker...@lists.debian.org) #1 SMP Debian 4.19~rc7-1~exp1 (2018-10-07) [4.19.0-rc7-amd64] [Kernel/Linux] Expected linux version: 4.20.0-trunk-amd64 Running kernel seems to be up-to-date. The processor microcode seems to be up-to-date. No services need to be restarted. No containers need to be restarted. No user sessions are running outdated binaries. ``` ``` # lsof +f -- / |grep 'DEL\|(path ' systemd-u 417 root DELREG 254,1 1307429 /usr/lib/udev/hwdb.bin # lsof +aL1 +f -- / COMMAND PID USER FD TYPE DEVICE SIZE/OFF NLINKNODE NAME systemd-u 417 root 12r REG 254,1 9922242 0 1307429 /usr/lib/udev/hwdb.bin (deleted) # ps 417 PID TTY STAT TIME COMMAND 417 ?Ss 0:00 /lib/systemd/systemd-udevd ``` -- Package-specific info: needrestart output: checkrestart output: -- System Information: Debian Release: buster/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.20.0-trunk-amd64 (SMP w/8 CPU cores) Kernel taint flags: TAINT_CRAP, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages needrestart depends on: ii binutils 2.31.1-16 ii dpkg 1.19.5 ii gettext-base 0.19.8.1-9 ii libintl-perl 1.26-2 ii libmodule-find-perl0.13-1 ii libmodule-scandeps-perl1.27-1 ii libproc-processtable-perl 0.56-1 ii libsort-naturally-perl 1.03-2 ii libterm-readkey-perl 2.38-1 ii perl 5.28.1-5 ii xz-utils 5.2.4-1 Versions of packages needrestart recommends: ii libpam-systemd 241-2 Versions of packages needrestart suggests: ii iucode-tool 2.3.1-1 pn needrestart-session | libnotify-bin -- Configuration Files: /etc/needrestart/needrestart.conf changed [not included] -- no debconf information -- :: WWW:https://fiasko-nw.net/~thomas/ :: ::: GnuPG: 0x49D0C2C3 mailto:tho...@fiasko-nw.net ::: :: flickr: https://www.flickr.com/photos/laugufe/ ::
Bug#925393: needrestart doesn't detect changed hwdb.bin of udev
tag 925393 wontfix thanks Hi Jörg, On Thu, 28 Mar 2019, Jörg Sommer wrote: Could you please provide the corresponding lines from /proc/$PID/maps (i.e. grep hwdb.bin /proc/417/maps)? ``` # grep hwdb.bin /proc/`pidof systemd-udevd`/maps 7f88173c1000-7f8817d38000 r--s fe:01 1305942 /usr/lib/udev/hwdb.bin (deleted) ``` This file is not mapped executable nor is it executable (file identifies it as data). So this behavoir is intentional, needrestart only considers executable dependencies. Regards, Thomas -- :: WWW:https://fiasko-nw.net/~thomas/ :: ::: GnuPG: 0x49D0C2C3 mailto:tho...@fiasko-nw.net ::: :: flickr: https://www.flickr.com/photos/laugufe/ ::
Bug#925393: needrestart doesn't detect changed hwdb.bin of udev
Package: needrestart Version: 3.4-1 Severity: normal Hi, *needrestart* doesn't detect any processes running with outdated files, but *systemd-udev* uses a deleted file and hence, needs a restart. Regards Jörg ``` # needrestart -v [main] eval /etc/needrestart/needrestart.conf [main] needrestart v3.4 [main] running in root mode [Core] Using UI 'NeedRestart::UI::stdio'... [main] systemd detected [Core] #714 is a NeedRestart::Interp::Python [Python] #714: source=/usr/bin/xandikos [Core] #2975 is a NeedRestart::Interp::Python [Python] #2975: source=/usr/bin/reportbug [uCode/Intel] current revision: 0x25 + iucode_tool --scan-system + grep -oE [^[:space:]]+$ + sig=0x000306c3 + [ -r /sys/devices/system/cpu/cpu0/microcode/processor_flags ] + cat /sys/devices/system/cpu/cpu0/microcode/processor_flags + filter=-s 0x000306c3,0x20 + type bsdtar + IUCODE_TOOL_EXTRA_OPTIONS= + test -r /etc/default/intel-microcode + . /etc/default/intel-microcode + test = no + [ -r /usr/share/misc/intel-microcode* ] + iucode_tool -l -s 0x000306c3,0x20 --ignore-broken -tb /lib/firmware/intel-ucode + grep 0x000306c3 [uCode/Intel] available revision: 0x0025 [Kernel] Linux: kernel release 4.20.0-trunk-amd64, kernel version #1 SMP Debian 4.20-1~exp1 (2018-12-24) [Kernel/Linux] /boot/vmlinuz-4.20.0-trunk-amd64 => 4.20.0-trunk-amd64 (debian-ker...@lists.debian.org) #1 SMP Debian 4.20-1~exp1 (2018-12-24) [4.20.0-trunk-amd64]* [Kernel/Linux] /boot/vmlinuz-4.19.0-4-amd64 => 4.19.0-4-amd64 (debian-ker...@lists.debian.org) #1 SMP Debian 4.19.28-2 (2019-03-15) [4.19.0-4-amd64] [Kernel/Linux] /boot/vmlinuz-4.19.0-3-amd64 => 4.19.0-3-amd64 (debian-ker...@lists.debian.org) #1 SMP Debian 4.19.20-1 (2019-02-11) [4.19.0-3-amd64] [Kernel/Linux] /boot/vmlinuz-4.19.0-rc7-amd64 => 4.19.0-rc7-amd64 (debian-ker...@lists.debian.org) #1 SMP Debian 4.19~rc7-1~exp1 (2018-10-07) [4.19.0-rc7-amd64] [Kernel/Linux] Expected linux version: 4.20.0-trunk-amd64 Running kernel seems to be up-to-date. The processor microcode seems to be up-to-date. No services need to be restarted. No containers need to be restarted. No user sessions are running outdated binaries. ``` ``` # lsof +f -- / |grep 'DEL\|(path ' systemd-u 417 root DELREG 254,1 1307429 /usr/lib/udev/hwdb.bin # lsof +aL1 +f -- / COMMAND PID USER FD TYPE DEVICE SIZE/OFF NLINKNODE NAME systemd-u 417 root 12r REG 254,1 9922242 0 1307429 /usr/lib/udev/hwdb.bin (deleted) # ps 417 PID TTY STAT TIME COMMAND 417 ?Ss 0:00 /lib/systemd/systemd-udevd ``` -- Package-specific info: needrestart output: checkrestart output: -- System Information: Debian Release: buster/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.20.0-trunk-amd64 (SMP w/8 CPU cores) Kernel taint flags: TAINT_CRAP, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages needrestart depends on: ii binutils 2.31.1-16 ii dpkg 1.19.5 ii gettext-base 0.19.8.1-9 ii libintl-perl 1.26-2 ii libmodule-find-perl0.13-1 ii libmodule-scandeps-perl1.27-1 ii libproc-processtable-perl 0.56-1 ii libsort-naturally-perl 1.03-2 ii libterm-readkey-perl 2.38-1 ii perl 5.28.1-5 ii xz-utils 5.2.4-1 Versions of packages needrestart recommends: ii libpam-systemd 241-2 Versions of packages needrestart suggests: ii iucode-tool 2.3.1-1 pn needrestart-session | libnotify-bin -- Configuration Files: /etc/needrestart/needrestart.conf changed [not included] -- no debconf information signature.asc Description: PGP signature