Re: [PATCH] rtc: dev: zero-initialize struct rtc_wkalrm to prevent information leak
From: Alexandre Belloni
Date: Mon Sep 21 2026 - 15:19:14 EST
On Thu, 27 Aug 2026 09:54:44 +0800, Liu Dalin wrote:
> The struct rtc_wkalrm has padding holes after the 'pending' member.
> When returned to userspace via the RTC_WKALRM_RD ioctl, uninitialized
> kernel stack data residing in these holes may be leaked.
>
> Zero-initialize the struct at declaration to eliminate this information
> leak risk.
>
> [...]
Applied, thanks!
[1/1] rtc: dev: zero-initialize struct rtc_wkalrm to prevent information leak
https://git.kernel.org/abelloni/c/0ee5c5d804d5
Best regards,
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com