summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/page_64_types.h
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2021-09-15 17:19:46 +0300
committerPeter Zijlstra <peterz@infradead.org>2021-09-21 14:57:43 +0300
commit7fae4c24a2b84a66c7be399727aca11e7a888462 (patch)
treee9d09d78f3c3ce5598617ce05d4420fe08c55398 /arch/x86/include/asm/page_64_types.h
parent44b979fa302cab91bdd2cc982823e5c13202cd4e (diff)
downloadlinux-7fae4c24a2b84a66c7be399727aca11e7a888462.tar.xz
x86: Increase exception stack sizes
It turns out that a single page of stack is trivial to overflow with all the tracing gunk enabled. Raise the exception stacks to 2 pages, which is still half the interrupt stacks, which are at 4 pages. Reported-by: Michael Wang <yun.wang@linux.alibaba.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/YUIO9Ye98S5Eb68w@hirez.programming.kicks-ass.net
Diffstat (limited to 'arch/x86/include/asm/page_64_types.h')
-rw-r--r--arch/x86/include/asm/page_64_types.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/page_64_types.h b/arch/x86/include/asm/page_64_types.h
index a8d4ad856568..e9e2c3ba5923 100644
--- a/arch/x86/include/asm/page_64_types.h
+++ b/arch/x86/include/asm/page_64_types.h
@@ -15,7 +15,7 @@
#define THREAD_SIZE_ORDER (2 + KASAN_STACK_ORDER)
#define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER)
-#define EXCEPTION_STACK_ORDER (0 + KASAN_STACK_ORDER)
+#define EXCEPTION_STACK_ORDER (1 + KASAN_STACK_ORDER)
#define EXCEPTION_STKSZ (PAGE_SIZE << EXCEPTION_STACK_ORDER)
#define IRQ_STACK_ORDER (2 + KASAN_STACK_ORDER)