s390/kaslr: randomize amode31 base address
authorVasily Gorbik <gor@linux.ibm.com>
Wed, 15 Mar 2023 12:54:14 +0000 (13:54 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 13 Apr 2023 15:36:27 +0000 (17:36 +0200)
commitb3e0423c4e76b19f04799e01b6443949f5fecbbc
treed49a6964ceca822d83bf54d8a93dcf409238828b
parent6e259bc5a15ec49693fa3d19fdd4511f7679a20d
s390/kaslr: randomize amode31 base address

When the KASLR is enabled, randomize the base address of the amode31 image
within the first 2 GB, similar to the approach taken for the vmlinux
image. This makes it harder to predict the location of amode31 data
and code.

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/boot/startup.c