Re: [PATCH] rtc: check if __rtc_read_time was successful in rtc_timer_do_work()
From: Alexandre Belloni
Date: Mon Nov 11 2024 - 17:11:35 EST
On Fri, 11 Oct 2024 12:31:53 +0800, Yongliang Gao wrote:
> If the __rtc_read_time call fails,, the struct rtc_time tm; may contain
> uninitialized data, or an illegal date/time read from the RTC hardware.
>
> When calling rtc_tm_to_ktime later, the result may be a very large value
> (possibly KTIME_MAX). If there are periodic timers in rtc->timerqueue,
> they will continually expire, may causing kernel softlockup.
>
> [...]
Applied, thanks!
[1/1] rtc: check if __rtc_read_time was successful in rtc_timer_do_work()
https://git.kernel.org/abelloni/c/e8ba8a2bc4f6
Best regards,
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com