]> git.baikalelectronics.ru Git - kernel.git/commit
s390/kasan: use noexec and large pages
authorVasily Gorbik <gor@linux.ibm.com>
Fri, 17 Nov 2017 17:44:28 +0000 (18:44 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 9 Oct 2018 09:21:24 +0000 (11:21 +0200)
commit6019cf0aa9d1d97fffdbb36cf65f11b384234cf7
treedf49d5748482b08c2c96e17de5b58df20d21e3ec
parentfc089a5108854f9a735c98438e464732aa538f04
s390/kasan: use noexec and large pages

To lower memory footprint and speed up kasan initialisation detect
EDAT availability and use large pages if possible. As we know how
much memory is needed for initialisation, another simplistic large
page allocator is introduced to avoid memory fragmentation.

Since facilities list is retrieved anyhow, detect noexec support and
adjust pages attributes. Handle noexec kernel option to avoid inconsistent
kasan shadow memory pages flags.

Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/boot/ipl_parm.c
arch/s390/boot/string.c
arch/s390/include/asm/pgtable.h
arch/s390/include/asm/setup.h
arch/s390/kernel/setup.c
arch/s390/mm/kasan_init.c