]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
powerpc/kasan: Fix stack overflow by increasing THREAD_SHIFT
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 8 Apr 2020 15:58:49 +0000 (15:58 +0000)
committerKhalid Elmously <khalid.elmously@canonical.com>
Sat, 8 Aug 2020 05:53:12 +0000 (01:53 -0400)
commitc77a573799ed4bf91412f58504ef4a3d7b5a5888
tree15ed92765ae8dce728733a525473b46ce64076f3
parenta2e84fafb65d51403cc0744bf221de33dc67d27c
powerpc/kasan: Fix stack overflow by increasing THREAD_SHIFT

BugLink: https://bugs.launchpad.net/bugs/1885322
[ Upstream commit edbadaf0671072298e506074128b64e003c5812c ]

When CONFIG_KASAN is selected, the stack usage is increased.

In the same way as x86 and arm64 architectures, increase
THREAD_SHIFT when CONFIG_KASAN is selected.

Fixes: 2edb16efc899 ("powerpc/32: Add KASAN support")
Reported-by: <erhard_f@mailbox.org>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=207129
Link: https://lore.kernel.org/r/2c50f3b1c9bbaa4217c9a98f3044bd2a36c46a4f.1586361277.git.christophe.leroy@c-s.fr
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
arch/powerpc/Kconfig