]> git.ipfire.org Git - thirdparty/linux.git/commit
s390/kasan: free early identity mapping structures
authorVasily Gorbik <gor@linux.ibm.com>
Mon, 20 Nov 2017 11:56:10 +0000 (12:56 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 9 Oct 2018 09:21:29 +0000 (11:21 +0200)
commit135ff163939294f5573927ca890699ed619c0031
tree9f2db851306f6dfdc58dc2249677507e560feeef
parent5e785963298b7923e28817d20868882fbefc863c
s390/kasan: free early identity mapping structures

Kasan initialization code is changed to populate persistent shadow
first, save allocator position into pgalloc_freeable and proceed with
early identity mapping creation. This way early identity mapping paging
structures could be freed at once after switching to swapper_pg_dir
when early identity mapping is not needed anymore.

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