OSDN Git Service

x86: Increase exception stack sizes
authorPeter Zijlstra <peterz@infradead.org>
Wed, 15 Sep 2021 14:19:46 +0000 (16:19 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 21 Sep 2021 11:57:43 +0000 (13:57 +0200)
commit7fae4c24a2b84a66c7be399727aca11e7a888462
treee9d09d78f3c3ce5598617ce05d4420fe08c55398
parent44b979fa302cab91bdd2cc982823e5c13202cd4e
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
arch/x86/include/asm/page_64_types.h