android_kernel_motorola_sm6225/arch/m68k
Greg Ungerer 5b4b2c249c m68knommu: set ZERO_PAGE() to the allocated zeroed page
[ Upstream commit dc068f46217970d9516f16cd37972a01d50dc055 ]

The non-MMU m68k pagetable ZERO_PAGE() macro is being set to the
somewhat non-sensical value of "virt_to_page(0)". The zeroth page
is not in any way guaranteed to be a page full of "0". So the result
is that ZERO_PAGE() will almost certainly contain random values.

We already allocate a real "empty_zero_page" in the mm setup code shared
between MMU m68k and non-MMU m68k. It is just not hooked up to the
ZERO_PAGE() macro for the non-MMU m68k case.

Fix ZERO_PAGE() to use the allocated "empty_zero_page" pointer.

I am not aware of any specific issues caused by the old code.

Link: https://lore.kernel.org/linux-m68k/2a462b23-5b8e-bbf4-ec7d-778434a3b9d7@google.com/T/#t
Reported-by: Hugh Dickens <hughd@google.com>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-14 16:59:34 +02:00
..
68000 m68k: Fix off-by-one calendar month 2018-05-22 10:31:50 +02:00
amiga m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
apollo m68k: Remove unused set_clock_mmss() helpers 2018-07-29 10:48:18 +02:00
atari m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
bvme6000 m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
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 m68k: emu: Fix invalid free in nfeth_cleanup() 2021-09-22 11:47:50 +02:00
fpsp040 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hp300 m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
ifpsp060
include m68knommu: set ZERO_PAGE() to the allocated zeroed page 2022-06-14 16:59:34 +02:00
kernel m68k: Handle arrivals of multiple signals correctly 2021-10-17 10:19:49 +02:00
lib License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
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 m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
mvme147 m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
q40 m68k: q40: Fix info-leak in rtc_ioctl 2020-10-01 13:14:24 +02:00
sun3 m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
sun3x m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:51:23 +01:00
tools/amiga License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
install.sh
Kconfig Consolidation of Kconfig files by Christoph Hellwig. 2018-08-15 13:05:12 -07:00
Kconfig.bus m68k: allow ColdFire PCI bus on MMU and non-MMU configuration 2018-05-28 09:45:27 +10:00
Kconfig.cpu m68k: math-emu: Fix dependencies of math emulation support 2022-06-14 16:59:22 +02:00
Kconfig.debug Kconfig: consolidate the "Kernel hacking" menu 2018-08-02 08:06:48 +09:00
Kconfig.devices License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig.machine m68k: set a default value for MEMORY_RESERVE 2021-11-26 11:36:15 +01:00
Makefile m68k: Add -ffreestanding to CFLAGS 2019-03-23 20:10:00 +01:00