Skip to content

Commit 30c4008

Browse files
chleroympe
authored andcommitted
powerpc/kasan: Fix shadow start address with modules
Modules are now located before kernel, KASAN area has to be extended accordingly. Fixes: 80edc68 ("powerpc/32s: Define a MODULE area below kernel text all the time") Fixes: 9132a2e ("powerpc/8xx: Define a MODULE area below kernel text") Signed-off-by: Christophe Leroy <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/c68163065163f303f5af1e4bbdd9f1ce69f0543e.1619260465.git.christophe.leroy@csgroup.eu
1 parent fc5590f commit 30c4008

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/include/asm/kasan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#define KASAN_SHADOW_SCALE_SHIFT 3
2121

22-
#if defined(CONFIG_PPC_BOOK3S_32) && defined(CONFIG_MODULES) && defined(CONFIG_STRICT_KERNEL_RWX)
22+
#ifdef CONFIG_MODULES
2323
#define KASAN_KERN_START ALIGN_DOWN(PAGE_OFFSET - SZ_256M, SZ_256M)
2424
#else
2525
#define KASAN_KERN_START PAGE_OFFSET

0 commit comments

Comments
 (0)