linux/arch/s390/boot
Heiko Carstens 93f616ff87 s390/mm: Do not map lowcore with identity mapping
Since the identity mapping is pinned to address zero the lowcore is always
also mapped to address zero, this happens regardless of the relocate_lowcore
command line option. If the option is specified the lowcore is mapped
twice, instead of only once.

This means that NULL pointer accesses will succeed instead of causing an
exception (low address protection still applies, but covers only parts).
To fix this never map the first two pages of physical memory with the
identity mapping.

Fixes: 32db401965 ("s390/mm: Pin identity mapping base to zero")
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
2025-08-20 16:37:28 +02:00
..
.gitignore
Makefile s390/boot: Introduce jump_to_kernel() function 2025-07-10 14:42:10 +02:00
als.c
alternative.c
boot.h s390/boot: Introduce jump_to_kernel() function 2025-07-10 14:42:10 +02:00
clz_ctz.c
cmdline.c
ctype.c
decompressor.c
decompressor.h
ebcdic.c
head.S
head_kdump.S
install.sh
ipl_data.c s390/boot: Introduce jump_to_kernel() function 2025-07-10 14:42:10 +02:00
ipl_parm.c
ipl_report.c
ipl_vmparm.c
kaslr.c
kmsan.c
machine_kexec_reloc.c
mem.S
pgm_check.c
physmem_info.c
printk.c
sclp_early_core.c
startup.c s390/boot: Fix startup debugging log 2025-08-06 17:18:27 +02:00
string.c
trampoline.S s390/boot: Introduce jump_to_kernel() function 2025-07-10 14:42:10 +02:00
uv.c
uv.h
version.c
vmem.c s390/mm: Do not map lowcore with identity mapping 2025-08-20 16:37:28 +02:00
vmlinux.lds.S