Re: [PATCH] rtc: class: Do not inject sleep time without a suspend snapshot

From: Florimond Husquinet

Date: Thu Dec 03 2026 - 12:54:47 EST


Hi Alperen,

I independently tested your patch on an ASUS Vivobook K3402ZA
(Intel Core i5-12500H, BIOS K3402ZA.305) running Fedora 45,
with the RTC in local time (UTC+1).

I built patched and unpatched kernels from the same Fedora
7.3.6-300.fc45 sources, using identical reduced kernel
configurations except for CONFIG_LOCALVERSION.

Using your reproducer, I obtained the following results
(clock jumps per completed test cycle):

- Stock Fedora 7.3.6, rtc1: 7/26
- Custom unpatched, rtc0: 0/30
- Custom patched, rtc0: 0/30
- Custom unpatched, rtc1: 7/27
- Custom patched, rtc1: 0/27

On this machine, rtc0 is rtc_cmos and rtc1 is acpi-tad.

Forcing rtc1 was necessary to reproduce the bug with my custom
unpatched kernel in these runs.

All seven jumps on the custom unpatched kernel were accompanied
by calls to timekeeping_inject_sleeptime64() from rtc_resume(),
injecting approximately 3600 seconds.

No such calls or clock jumps were observed on the patched kernel,
despite several short timekeeping freezes.

There were occasional automatic wake failures with rtc1 on both
kernels. In each of these cases, I had to intervene manually to
wake the machine by pressing random keys on an external USB
keyboard. None of these cycles exhibited a clock jump.

Full results, methodology, logs and traces are available in the
Fedora bug report:

https://bugzilla.redhat.com/show_bug.cgi?id=2543517

Your patch successfully addresses the reported clock-jump issue
on my hardware.

Tested-by: Florimond Husquinet <florimond@xxxxxxxxxxxxx>

An AI assistant helped with the investigation, build procedure,
analysis and preparation of this report. I performed the tests
myself.

Thank you for your work on this issue.