https://bugzilla.suse.com/show_bug.cgi?id=1181533
Bug ID: 1181533 Summary: Is not possible to set date with UTC format and 2038 year using hwclock Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: openSUSE Tumbleweed Status: NEW Severity: Major Priority: P5 - None Component: Basesystem Assignee: screening-team-bugs@suse.de Reporter: ionut_n2001@yahoo.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: ---
Hi SUSE Team,
I try to set date with UTC format and 2038 Year. This is not working.
Steps for reproduce: # date -s "Jan 20 15:42:59 UTC 2038" # hwclock -w # hwclock -s
hwclock: settimeofday() failed: Invalid argument
https://bugzilla.suse.com/show_bug.cgi?id=1181533
Chenzi Cao chcao@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|screening-team-bugs@suse.de |sbrabec@suse.com
https://bugzilla.suse.com/show_bug.cgi?id=1181533 https://bugzilla.suse.com/show_bug.cgi?id=1181533#c1
Stanislav Brabec sbrabec@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ionut_n2001@yahoo.com Flags| |needinfo?(ionut_n2001@yahoo | |.com)
--- Comment #1 from Stanislav Brabec sbrabec@suse.com --- Can you reproduce it with util-linux-2.37.4 in the recent Tumbleweed? I cannot reproduce it there.
This is still an expected behavior for 32-bit platforms, but it should not happen on 64 bits.
https://bugzilla.suse.com/show_bug.cgi?id=1181533 https://bugzilla.suse.com/show_bug.cgi?id=1181533#c2
--- Comment #2 from Ionut Nechita ionut_n2001@yahoo.com --- Hi Stanislav,
I try today with latest util-linux and this issue is not reproduced on my system. Thank you for all.
cat /etc/os-release NAME="openSUSE Tumbleweed" # VERSION="20220520" ID="opensuse-tumbleweed" ID_LIKE="opensuse suse" VERSION_ID="20220520" PRETTY_NAME="openSUSE Tumbleweed" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:tumbleweed:20220520" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://www.opensuse.org/" DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed" LOGO="distributor-logo-Tumbleweed
rpm -qa | grep util-linux util-linux-2.37.4-1.4.x86_64 util-linux-systemd-2.37.4-1.4.x86_64
https://bugzilla.suse.com/show_bug.cgi?id=1181533
Stanislav Brabec sbrabec@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |maint-coord@suse.de Flags|needinfo?(ionut_n2001@yahoo |needinfo?(maint-coord@suse. |.com) |de)
https://bugzilla.suse.com/show_bug.cgi?id=1181533 https://bugzilla.suse.com/show_bug.cgi?id=1181533#c4
Stanislav Brabec sbrabec@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |IN_PROGRESS
--- Comment #4 from Stanislav Brabec sbrabec@suse.com --- Bisect indicates this as the fix: https://github.com/util-linux/util-linux/commit/a937ef831891c30bb7adfc945dee...
But there is at least one another relevant commit we might need to backport: https://github.com/util-linux/util-linux/commit/ce3355cc54d97711bc240783324f...
https://bugzilla.suse.com/show_bug.cgi?id=1181533 https://bugzilla.suse.com/show_bug.cgi?id=1181533#c5
Marcus Meissner meissner@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kukuk@suse.com, | |meissner@suse.com Flags|needinfo?(maint-coord@suse. | |de) |
--- Comment #5 from Marcus Meissner meissner@suse.com --- we have so far not committed to any product after this year.
ALP however would need to be covered.
Thorsten, you did some work on this y2038 problem, is this correct?
https://bugzilla.suse.com/show_bug.cgi?id=1181533 https://bugzilla.suse.com/show_bug.cgi?id=1181533#c6
--- Comment #6 from Stanislav Brabec sbrabec@suse.com --- git describe --contains a937ef831891c30bb7adfc945dee439d192b3476 v2.37-rc2~37^2~2
=> Anything newer than SLE15 SP4 is not affected by this Y2038 bug.