original_kernel/arch/s390/boot
Alexander Gordeev 693d41f7c9 s390/mm: Restore mapping of kernel image using large pages
Since physical and virtual kernel address spaces are uncoupled
the kernel image is not mapped using large segment pages anymore,
which is a regression.

Put the kernel image at the same large segment page offset in
physical memory as in virtual memory. Such approach preserves
the existing number of bits of entropy used for randomization
of the kernel location in virtual memory when KASLR is on.
As result, the kernel is mapped using large segment pages.

Fixes: c98d2ecae0 ("s390/mm: Uncouple physical vs virtual address spaces")
Reported-by: Heiko Carstens <hca@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
2024-06-11 16:20:40 +02:00
..
.gitignore
Makefile s390: Compile kernel with -fPIC and link with -no-pie 2024-04-29 17:33:30 +02:00
als.c
boot.h s390: Compile kernel with -fPIC and link with -no-pie 2024-04-29 17:33:30 +02:00
clz_ctz.c
cmdline.c
ctype.c
decompressor.c s390/boot: Rework deployment of the kernel image 2024-04-17 13:38:02 +02:00
decompressor.h s390/boot: Rework deployment of the kernel image 2024-04-17 13:38:02 +02:00
ebcdic.c
head.S
head_kdump.S
install.sh
ipl_data.c
ipl_parm.c
ipl_report.c
ipl_vmparm.c
kaslr.c s390/mm: Uncouple physical vs virtual address spaces 2024-04-17 13:38:01 +02:00
machine_kexec_reloc.c
mem.S
pgm_check_info.c s390/boot: Uncouple virtual and physical kernel offsets 2024-04-17 13:38:00 +02:00
physmem_info.c
sclp_early_core.c
startup.c s390/mm: Restore mapping of kernel image using large pages 2024-06-11 16:20:40 +02:00
string.c
uv.c
uv.h
version.c
vmem.c s390/mm: Restore mapping of kernel image using large pages 2024-06-11 16:20:40 +02:00
vmlinux.lds.S s390/mm: Restore mapping of kernel image using large pages 2024-06-11 16:20:40 +02:00