original_kernel/arch/s390
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
..
appldata S390: Remove now superfluous sentinel elem from ctl_table arrays 2023-10-10 15:22:02 -07:00
boot s390/mm: Restore mapping of kernel image using large pages 2024-06-11 16:20:40 +02:00
configs s390: Update defconfigs 2024-06-11 16:20:40 +02:00
crypto s390/paes: Reestablish retry loop in paes 2024-05-01 11:52:54 +02:00
hypfs s390/hypfs_sprp: remove unneeded DMA zone allocation 2024-02-09 13:58:14 +01:00
include more s390 updates for 6.10 merge window 2024-05-21 12:09:36 -07:00
kernel s390/crash: Do not use VM info if os_info does not have it 2024-06-05 17:03:24 +02:00
kvm - Store AP Query Configuration Information in a static buffer 2024-05-13 08:33:52 -07:00
lib s390/expoline: Make modules use kernel expolines 2024-04-17 13:38:03 +02:00
mm The usual shower of singleton fixes and minor series all over MM, 2024-05-19 09:21:03 -07:00
net s390/bpf: Emit a barrier for BPF_FETCH instructions 2024-05-12 16:55:57 -07:00
pci The usual shower of singleton fixes and minor series all over MM, 2024-05-19 09:21:03 -07:00
purgatory Makefile: remove redundant tool coverage variables 2024-05-14 23:35:48 +09:00
tools s390/boot: Rework deployment of the kernel image 2024-04-17 13:38:02 +02:00
Kbuild - An extensive rework of kexec and crash Kconfig from Eric DeVolder 2023-08-29 14:53:51 -07:00
Kconfig The usual shower of singleton fixes and minor series all over MM, 2024-05-19 09:21:03 -07:00
Kconfig.debug s390/Kconfig.debug: fix indentation 2022-06-01 12:03:15 +02:00
Makefile s390: Compile kernel with -fPIC and link with -no-pie 2024-04-29 17:33:30 +02:00