Files
linux/arch/m68k
Fuqian Huang 6146087c7a m68k: q40: Fix info-leak in rtc_ioctl
[ Upstream commit 7cf78b6b12 ]

When the option is RTC_PLL_GET, pll will be copied to userland
via copy_to_user. pll is initialized using mach_get_rtc_pll indirect
call and mach_get_rtc_pll is only assigned with function
q40_get_rtc_pll in arch/m68k/q40/config.c.
In function q40_get_rtc_pll, the field pll_ctrl is not initialized.
This will leak uninitialized stack content to userland.
Fix this by zeroing the uninitialized field.

Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Link: https://lore.kernel.org/r/20190927121544.7650-1-huangfq.daxian@gmail.com
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-16 09:14:48 +09:00
..
2015-06-16 16:45:38 +10:00
2016-06-04 00:23:28 +02:00
2011-03-31 11:26:23 -03:00
2016-07-03 14:05:28 +02:00
2016-08-07 23:47:19 -04:00
2016-07-03 14:05:28 +02:00
2023-05-16 09:14:48 +09:00
2023-05-15 12:06:01 +09:00