Skip to contentSkip to conversation

alpha: Select ARCH_WANT_IRQS_OFF_ACTIVATE_MM

PATCH New Matt Turner 1 participant 1 message Apr 3 Alpha port

lore
Share & tools
lore

Matt Turner

author maintainer
#0 lore raw

PATCH 1/1 alpha: Select ARCH_WANT_IRQS_OFF_ACTIVATE_MM

activate_mm() on Alpha calls __load_new_mm_context() which assigns a new ASID and invokes PALcode swpctx. On SMP, an interrupt arriving between the ASID update and the page table switch could see inconsistent state. Ensure activate_mm() is called with interrupts disabled during exec.

Assisted-by Claude:claude-opus-4-6
---
 arch/alpha/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/alpha/Kconfig +1 -0
index a29788e588ee..1ba472a98bb2 100644
@@ -37,6 +37,7 @@ config ALPHA
 	select AUTO_IRQ_AFFINITY if SMP
 	select GENERIC_IRQ_SHOW
 	select ARCH_WANT_FRAME_POINTERS
+	select ARCH_WANT_IRQS_OFF_ACTIVATE_MM
 	select ARCH_WANT_IPC_PARSE_VERSION
 	select ARCH_HAVE_NMI_SAFE_CMPXCHG
 	select AUDIT_ARCH
Signature · 1 line
2.52.0