x86: Increase exception stack sizes
authorPeter Zijlstra <peterz@infradead.org>
Wed, 15 Sep 2021 14:19:46 +0000 (16:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 13:03:53 +0000 (14:03 +0100)
commit7ca1711d59f1a9ff6c7c68e5a690891082486f34
treeeb851b82a218eb540d7c94b6e2c2066d1966f2fc
parent1c04dabbd1aa391adeaeb6c52e121435ff21ab00
x86: Increase exception stack sizes

[ Upstream commit 7fae4c24a2b84a66c7be399727aca11e7a888462 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/include/asm/page_64_types.h