[PATCH v2] powerpc/32s: Disable VMAP stack which CONFIG_ADB_PMU

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE2162d LANDED

Landed in mainline as 4a133eb351cc on 2020-08-28.

2 messages, 2 authors, 2020-08-30 · open the first message on its own page

[PATCH v2] powerpc/32s: Disable VMAP stack which CONFIG_ADB_PMU

From: Christophe Leroy <hidden>
Date: 2020-08-27 18:30:32

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.

Reported-by: Giuseppe Sacco <redacted>
Fixes: cd08f109e262 ("powerpc/32s: Enable CONFIG_VMAP_STACK")
Signed-off-by: Christophe Leroy <redacted>
---
v2: Argh, went too quick. CONFIG_ADB_PMU ==> ADB_PMU
---
 arch/powerpc/platforms/Kconfig.cputype | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype
index 87737ec86d39..1dc9d3c81872 100644
--- a/arch/powerpc/platforms/Kconfig.cputype
+++ b/arch/powerpc/platforms/Kconfig.cputype
@@ -36,7 +36,7 @@ config PPC_BOOK3S_6xx
 	select PPC_HAVE_PMU_SUPPORT
 	select PPC_HAVE_KUEP
 	select PPC_HAVE_KUAP
-	select HAVE_ARCH_VMAP_STACK
+	select HAVE_ARCH_VMAP_STACK if !ADB_PMU
 
 config PPC_BOOK3S_601
 	bool "PowerPC 601"
-- 
2.25.0

Re: [PATCH v2] powerpc/32s: Disable VMAP stack which CONFIG_ADB_PMU

From: Michael Ellerman <hidden>
Date: 2020-08-30 11:39:54

On Thu, 27 Aug 2020 18:30:27 +0000 (UTC), Christophe Leroy wrote:
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.
Applied to powerpc/fixes.

[1/1] powerpc/32s: Disable VMAP stack which CONFIG_ADB_PMU
      https://git.kernel.org/powerpc/c/4a133eb351ccc275683ad49305d0b04dde903733

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help