Files
linux/drivers/rtc
Yongliang Gao e8ba8a2bc4 rtc: check if __rtc_read_time was successful in rtc_timer_do_work()
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.

Fixes: 6610e0893b ("RTC: Rework RTC code to use timerqueue for events")
Signed-off-by: Yongliang Gao <leonylgao@tencent.com>
Acked-by: Jingqun Li <jingqunli@tencent.com>
Link: https://lore.kernel.org/r/20241011043153.3788112-1-leonylgao@gmail.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2024-11-11 23:10:54 +01:00
..
2024-03-08 12:05:10 +01:00
2024-09-27 08:18:43 -07:00
2024-11-11 22:13:39 +01:00
2024-01-18 01:00:21 +01:00
2023-10-15 23:01:08 +02:00
2024-08-28 21:54:51 +01:00
2024-09-22 01:17:10 +02:00
2024-11-11 11:47:58 +01:00
2024-11-11 22:13:39 +01:00
2024-05-07 23:40:10 +02:00
2024-09-12 00:33:24 +02:00