OSDN Git Service

s390/kasan: move shadow mapping to decompressor
authorVasily Gorbik <gor@linux.ibm.com>
Thu, 9 Feb 2023 21:05:11 +0000 (22:05 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 20 Mar 2023 10:02:51 +0000 (11:02 +0100)
commit557b19709da97bc93ea5cf61926ca05800c15a13
treef1213e5c5ba017bf3a3f490875cccb5614704793
parente4c31004d3348202d4bc0bcdf662bf9d9d3e11cb
s390/kasan: move shadow mapping to decompressor

Since regular paging structs are initialized in decompressor already
move KASAN shadow mapping to decompressor as well. This helps to avoid
allocating KASAN required memory in 1 large chunk, de-duplicate paging
structs creation code and start the uncompressed kernel with KASAN
instrumentation right away. This also allows to avoid all pitfalls
accidentally calling KASAN instrumented code during KASAN initialization.

Acked-by: Heiko Carstens <hca@linux.ibm.com>
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/boot.h
arch/s390/boot/startup.c
arch/s390/boot/vmem.c
arch/s390/include/asm/kasan.h
arch/s390/include/asm/physmem_info.h
arch/s390/kernel/early.c
arch/s390/kernel/head64.S
arch/s390/kernel/vmlinux.lds.S
arch/s390/mm/Makefile
arch/s390/mm/kasan_init.c [deleted file]
arch/s390/mm/vmem.c