]> git.ipfire.org Git - thirdparty/linux.git/commit
s390/kasan: avoid kasan crash with standby memory defined
authorVasily Gorbik <gor@linux.ibm.com>
Thu, 13 Sep 2018 08:59:25 +0000 (10:59 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 9 Oct 2018 09:21:33 +0000 (11:21 +0200)
commit296352397db68313a189e65a3513960a2c844632
treecdfed6ca3d9b7b38656cf207f19f7c2e9df7a650
parent19733fe8721b8d91b799c91082ebb9c139ca6710
s390/kasan: avoid kasan crash with standby memory defined

Kasan early memory allocator simply chops off memory blocks from the
end of the physical memory. Reuse mem_detect info to identify actual
online memory end rather than using max_physmem_end. This allows to run
the kernel with kasan enabled and standby memory defined.

Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/kasan_init.c