diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2019-12-21 09:32:30 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-01-27 12:36:15 +0100 |
commit | 547db12fd8a0ce753c6bafd130827f1755c93fe6 (patch) | |
tree | cea3f0575eab94ad1aa0dc186f23585f1786e370 /arch/powerpc/kernel/setup_32.c | |
parent | powerpc/32: Add early stack overflow detection with VMAP stack. (diff) | |
download | linux-547db12fd8a0ce753c6bafd130827f1755c93fe6.tar.xz linux-547db12fd8a0ce753c6bafd130827f1755c93fe6.zip |
powerpc/32: Use vmapped stacks for interrupts
In order to also catch overflows on IRQ stacks, use vmapped stacks.
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/d33ad1b36ddff4dcc19f96c592c12a61cf85d406.1576916812.git.christophe.leroy@c-s.fr
Diffstat (limited to 'arch/powerpc/kernel/setup_32.c')
-rw-r--r-- | arch/powerpc/kernel/setup_32.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c index a55b4d9ab824..5b49b26eb154 100644 --- a/arch/powerpc/kernel/setup_32.c +++ b/arch/powerpc/kernel/setup_32.c @@ -153,6 +153,9 @@ void __init irqstack_early_init(void) { unsigned int i; + if (IS_ENABLED(CONFIG_VMAP_STACK)) + return; + /* interrupt stacks must be in lowmem, we get that for free on ppc32 * as the memblock is limited to lowmem by default */ for_each_possible_cpu(i) { |