]> www.infradead.org Git - users/hch/xfs.git/commit
s390/boot: Avoid possible physmem_info segment corruption
authorAlexander Gordeev <agordeev@linux.ibm.com>
Wed, 21 Aug 2024 16:55:06 +0000 (18:55 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 22 Aug 2024 17:24:13 +0000 (19:24 +0200)
commitd7fd2941ae9a67423d1c7bee985f240e4686634f
treed296828efe994aa9b0187650848e3e247357fc88
parentb4f5bd60d558f6ba451d7e76aa05782c07a182a3
s390/boot: Avoid possible physmem_info segment corruption

When physical memory for the kernel image is allocated it does not
consider extra memory required for offsetting the image start to
match it with the lower 20 bits of KASLR virtual base address. That
might lead to kernel access beyond its memory range.

Suggested-by: Vasily Gorbik <gor@linux.ibm.com>
Fixes: 693d41f7c938 ("s390/mm: Restore mapping of kernel image using large pages")
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Acked-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/boot/startup.c