diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2020-01-14 20:54:00 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-01-27 14:37:33 +0300 |
commit | 3d4247fcc938d0ab5cf6fdb752dae07fdeab9736 (patch) | |
tree | 7f4743175d8918073dde336c10cd68b12afe7507 /arch/powerpc/include/asm/kasan.h | |
parent | 0f9aee0cb9da7db7d96f63cfa2dc5e4f1bffeb87 (diff) | |
download | linux-3d4247fcc938d0ab5cf6fdb752dae07fdeab9736.tar.xz |
powerpc/32: Add support of KASAN_VMALLOC
Add support of KASAN_VMALLOC on PPC32.
To allow this, the early shadow covering the VMALLOC space
need to be removed once high_memory var is set and before
freeing memblock.
And the VMALLOC area need to be aligned such that boundaries
are covered by a full shadow page.
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/031dec5487bde9b2181c8b3c9800e1879cf98c1a.1579024426.git.christophe.leroy@c-s.fr
Diffstat (limited to 'arch/powerpc/include/asm/kasan.h')
-rw-r--r-- | arch/powerpc/include/asm/kasan.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/kasan.h b/arch/powerpc/include/asm/kasan.h index 296e51c2f066..fbff9ff9032e 100644 --- a/arch/powerpc/include/asm/kasan.h +++ b/arch/powerpc/include/asm/kasan.h @@ -31,9 +31,11 @@ void kasan_early_init(void); void kasan_mmu_init(void); void kasan_init(void); +void kasan_late_init(void); #else static inline void kasan_init(void) { } static inline void kasan_mmu_init(void) { } +static inline void kasan_late_init(void) { } #endif #endif /* __ASSEMBLY */ |