]> git.baikalelectronics.ru Git - kernel.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)
commit3ec6c5c2cfdd23493d0c98248d2b75a7d4e39f5c
treecdfed6ca3d9b7b38656cf207f19f7c2e9df7a650
parent77f1f009e099ad105007774b5681a05f929b0af9
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