]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/mm: Prevent lowcore vs identity mapping overlap
authorAlexander Gordeev <agordeev@linux.ibm.com>
Fri, 9 Aug 2024 06:47:15 +0000 (08:47 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 21 Aug 2024 14:14:45 +0000 (16:14 +0200)
commita3ca27c405faad584af6e8e38cdafe5be73230a1
tree0b87beadb8851743b391984248e85ba26273d1ac
parentde9c2c66ad8e787abec7c9d7eff4f8c3cdd28aed
s390/mm: Prevent lowcore vs identity mapping overlap

The identity mapping position in virtual memory is randomized
together with the kernel mapping. That position can never
overlap with the lowcore even when the lowcore is relocated.

Prevent overlapping with the lowcore to allow independent
positioning of the identity mapping. With the current value
of the alternative lowcore address of 0x70000 the overlap
could happen in case the identity mapping is placed at zero.

This is a prerequisite for uncoupling of randomization base
of kernel image and identity mapping in virtual memory.

Acked-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/setup.c