Allthough 14 is the default THREAD_SHIFT when KASAN is selected,
taking an old config may keep 13 when CONFIG_EXPERT is selected.

Force it to 14 as a minimum when KASAN is selected.

Also default to 15 when KASAN on PPC64.

Reported-by: Erhard Furtner <erhar...@mailbox.org>
Signed-off-by: Christophe Leroy <christophe.le...@csgroup.eu>
---
 arch/powerpc/Kconfig | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 3eaddb8997a9..a4427977fdf8 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -788,8 +788,10 @@ config PPC_PAGE_SHIFT
 
 config THREAD_SHIFT
        int "Thread shift" if EXPERT
-       range 13 15
+       range 13 15 if !KASAN
+       range 14 15 if KASAN
        default "15" if PPC_256K_PAGES
+       default "15" if PPC64 && KASAN
        default "14" if PPC64
        default "14" if KASAN
        default "13"
-- 
2.35.3

Reply via email to