kernel-fxtec-pro1x/arch/m68k
Fuqian Huang 448221087d m68k: q40: Fix info-leak in rtc_ioctl
[ Upstream commit 7cf78b6b12fd5550545e4b73b35dca18bd46b44c ]

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:14:24 +02:00
..
68000
amiga
apollo
atari
bvme6000
coldfire m68k/PCI: Fix a memory leak in an error handling path 2020-06-25 15:32:50 +02:00
configs scsi: sr: remove references to BLK_DEV_SR_VENDOR, leave it enabled 2020-07-22 09:32:04 +02:00
emu
fpsp040
hp300
ifpsp060
include m68knommu: fix overwriting of bits in ColdFire V3 cache control 2020-08-26 10:31:01 +02:00
kernel m68k: nommu: register start of the memory with memblock 2020-07-22 09:32:01 +02:00
lib
mac m68k: mac: Fix IOP status/control register writes 2020-08-19 08:14:49 +02:00
math-emu
mm m68k: mm: fix node memblock init 2020-07-22 09:32:01 +02:00
mvme16x
mvme147
q40 m68k: q40: Fix info-leak in rtc_ioctl 2020-10-01 13:14:24 +02:00
sun3
sun3x
tools/amiga
install.sh
Kconfig
Kconfig.bus
Kconfig.cpu
Kconfig.debug
Kconfig.devices
Kconfig.machine
Makefile