s390/boot: Allow KASAN mapping to fallback to small pages
authorVasily Gorbik <gor@linux.ibm.com>
Tue, 10 Dec 2024 10:18:32 +0000 (11:18 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Sun, 26 Jan 2025 16:23:59 +0000 (17:23 +0100)
commit490a5e99ead57b16045a8e968fd8bc5fdcbfc90c
tree0f1d4b72f60c968c89ec81a534c9b8deca5792b0
parentaeb4358a52365269e6ca658505a6410ed85570b2
s390/boot: Allow KASAN mapping to fallback to small pages

For KASAN shadow mappings, switch from physmem_alloc_or_die() to
physmem_alloc() and return INVALID_PHYS_ADDR on allocation failure. This
allows gracefully falling back from large pages to smaller pages (1MB
or 4KB) if the allocation of 2GB size/aligned pages cannot be fulfilled.

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