]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
x86: Increase exception stack sizes
authorPeter Zijlstra <peterz@infradead.org>
Wed, 15 Sep 2021 14:19:46 +0000 (16:19 +0200)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:48:14 +0000 (09:48 +0100)
commit774ff440fea98f152fc607a921702603559d66ac
tree2fef8d01a347f75fb12b5526e17fdbc687583352
parent474ce0a2ef7d36af66d2e037ab80f59eef0c6592
x86: Increase exception stack sizes

BugLink: https://bugs.launchpad.net/bugs/1951822
[ 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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
arch/x86/include/asm/page_64_types.h