]> git.ipfire.org Git - people/arne_f/kernel.git/commit
powerpc/32s: Disable VMAP stack which CONFIG_ADB_PMU
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 27 Aug 2020 18:30:27 +0000 (18:30 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Sep 2020 09:29:44 +0000 (11:29 +0200)
commitbdae016706948df7fed1afdc096a655a99dfaac3
treedbbe3ea9964ef87b9f0d5146e3e337d33c924d7a
parent3b555853d736825fac9b4023dac7eaec99f54c9a
powerpc/32s: Disable VMAP stack which CONFIG_ADB_PMU

commit 4a133eb351ccc275683ad49305d0b04dde903733 upstream.

low_sleep_handler() can't restore the context from virtual
stack because the stack can hardly be accessed with MMU OFF.

For now, disable VMAP stack when CONFIG_ADB_PMU is selected.

Fixes: cd08f109e262 ("powerpc/32s: Enable CONFIG_VMAP_STACK")
Cc: stable@vger.kernel.org # v5.6+
Reported-by: Giuseppe Sacco <giuseppe@sguazz.it>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/ec96c15bfa1a7415ab604ee1c98cd45779c08be0.1598553015.git.christophe.leroy@csgroup.eu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/Kconfig.cputype