linux/arch/m68k
Fuqian Huang ff099d7c84 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>
2020-10-01 13:17:12 +02:00
..
68000
amiga
apollo
atari
bvme6000
coldfire
configs scsi: sr: remove references to BLK_DEV_SR_VENDOR, leave it enabled 2020-07-22 09:32:57 +02:00
emu
fpsp040
hp300
ifpsp060
include m68knommu: fix overwriting of bits in ColdFire V3 cache control 2020-08-26 10:40:55 +02:00
kernel m68k: nommu: register start of the memory with memblock 2020-07-22 09:32:52 +02:00
lib
mac m68k: mac: Fix IOP status/control register writes 2020-08-19 08:15:56 +02:00
math-emu
mm m68k: mm: fix node memblock init 2020-07-22 09:32:52 +02:00
mvme16x
mvme147
q40 m68k: q40: Fix info-leak in rtc_ioctl 2020-10-01 13:17:12 +02:00
sun3
sun3x
tools/amiga
Kconfig
Kconfig.bus
Kconfig.cpu
Kconfig.debug
Kconfig.devices
Kconfig.machine
Makefile kbuild: fix broken builds because of GZIP,BZIP2,LZOP variables 2020-09-03 11:27:10 +02:00
install.sh