Bug#1053872: systemd with high load after 19-01-2038
Tony de Goede
tonydegoede at gmail.com
Fri Oct 13 12:00:23 BST 2023
Package: systemd
Version: 252.12-1~deb12u1
Severity: serious
Justification: linux system unstable
Dear Maintainer,
When setting the time to 19 Jan 2038 3:14 GMT using "date 011903142038"
the systemd gets high load.
At 7 seconds after 3:14 the date is correct in the kernel but systemd
get high load.
After disable systemd-journald the error from systemd is reported to
console: "Time has been changed"
Inspection of the systemd code, I found lines in manager.c and others
calling timerfd_settime using struct itimerspec with seconds set to
TIME_T_MAX.
The define TIME_T_MAX is 0x7fffffff which is used to set a time which
blocks the call until an event triggers the timer. The TIME_T_MAX is
19/01/2038 3:14:07.
After 2038 this define does not work for ABS_TIME in settime.
Implementation of a blocked timer is wrong using this TIME_T_MAX in
ABS_TIME value.
Create a timeout relative to current time or calculate a better
absolute time.
-- Package-specific info:
-- System Information:
Debian Release: 12.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'stable')
Architecture: i386 (i686)
Kernel: Linux 6.1.0-10-686-pae (SMP w/1 CPU thread; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages systemd depends on:
ii libacl1 2.3.1-3
ii libaudit1 1:3.0.9-1
ii libblkid1 2.38.1-5+b1
ii libc6 2.36-9+deb12u1
ii libcap2 1:2.66-4
ii libcryptsetup12 2:2.6.1-4~deb12u1
ii libfdisk1 2.38.1-5+b1
ii libgcrypt20 1.10.1-3
ii libkmod2 30+20221128-1
ii liblz4-1 1.9.4-1
ii liblzma5 5.4.1-0.2
ii libmount1 2.38.1-5+b1
ii libp11-kit0 0.24.1-2
ii libseccomp2 2.5.4-1+b3
ii libselinux1 3.4-1+b6
ii libssl3 3.0.9-1
ii libsystemd-shared 252.12-1~deb12u1
ii libsystemd0 252.12-1~deb12u1
ii libzstd1 1.5.4+dfsg2-5
ii mount 2.38.1-5+b1
Versions of packages systemd recommends:
ii dbus [default-dbus-system-bus] 1.14.8-2~deb12u1
ii systemd-timesyncd [time-daemon] 252.12-1~deb12u1
Versions of packages systemd suggests:
ii libfido2-1 1.12.0-2+b1
ii libqrencode4 4.1.1-1
ii libtss2-esys-3.0.2-0 3.2.1-3
ii libtss2-mu0 3.2.1-3
ii libtss2-rc0 3.2.1-3
ii policykit-1 122-3
ii polkitd 122-3
pn systemd-boot <none>
pn systemd-container <none>
pn systemd-homed <none>
pn systemd-resolved <none>
pn systemd-userdbd <none>
Versions of packages systemd is related to:
ii dbus-user-session 1.14.8-2~deb12u1
pn dracut <none>
ii initramfs-tools 0.142
ii libnss-systemd 252.12-1~deb12u1
ii libpam-systemd 252.12-1~deb12u1
ii udev 252.12-1~deb12u1
-- no debconf information
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20231013/9b74697b/attachment.htm>
More information about the Pkg-systemd-maintainers
mailing list