]> git.ipfire.org Git - thirdparty/linux.git/commit
s390/kasan: avoid mapping KASAN shadow for standby memory
authorVasily Gorbik <gor@linux.ibm.com>
Mon, 30 Jan 2023 01:11:39 +0000 (02:11 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 6 Feb 2023 10:13:55 +0000 (11:13 +0100)
commit26ced8124a118e8c59d524da9d9f8d5e30502e60
tree4934b7012ff110c438a0c912dce2a28fc36e74aa
parent8382c963249dafcbe809dea307c2de16d5645579
s390/kasan: avoid mapping KASAN shadow for standby memory

KASAN common code is able to handle memory hotplug and create KASAN shadow
memory on a fly. Online memory ranges are available from mem_detect,
use this information to avoid mapping KASAN shadow for standby memory.

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/boot/kaslr.c
arch/s390/mm/kasan_init.c