summaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm
diff options
context:
space:
mode:
authorVasily Gorbik2017-11-20 12:56:10 +0100
committerMartin Schwidefsky2018-10-09 11:21:29 +0200
commit135ff163939294f5573927ca890699ed619c0031 (patch)
tree9f2db851306f6dfdc58dc2249677507e560feeef /arch/s390/include/asm
parents390/kasan: enable stack and global variables access checks (diff)
downloadkernel-qcow2-linux-135ff163939294f5573927ca890699ed619c0031.tar.gz
kernel-qcow2-linux-135ff163939294f5573927ca890699ed619c0031.tar.xz
kernel-qcow2-linux-135ff163939294f5573927ca890699ed619c0031.zip
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>
Diffstat (limited to 'arch/s390/include/asm')
-rw-r--r--arch/s390/include/asm/kasan.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/include/asm/kasan.h b/arch/s390/include/asm/kasan.h
index 892f4585c663..8b9ae18430ad 100644
--- a/arch/s390/include/asm/kasan.h
+++ b/arch/s390/include/asm/kasan.h
@@ -15,9 +15,11 @@
extern void kasan_early_init(void);
extern void kasan_copy_shadow(pgd_t *dst);
+extern void kasan_free_early_identity(void);
#else
static inline void kasan_early_init(void) { }
static inline void kasan_copy_shadow(pgd_t *dst) { }
+static inline void kasan_free_early_identity(void) { }
#endif
#endif