All of lore.kernel.org
 help / color / mirror / Atom feed
* local_irq_disable_full() in x86's __bad_area_nosemaphore
@ 2026-11-11 12:58 Jan Kiszka
  2026-11-11 22:57 ` Florian Bezdeka
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Kiszka @ 2026-11-11 12:58 UTC (permalink / raw)
  To: Philippe Gerum, Florian Bezdeka; +Cc: Xenomai

Hi Philippe, hi Florian,

I start to love pattern-matching machines:

Since 6.19-dovetail, commit 6af591980d1750b29474f001902c7dc58c3f1ba2, we have

diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c
index b83a06739b511..024a67bd2de6a 100644
--- a/arch/x86/mm/fault.c
+++ b/arch/x86/mm/fault.c
@@ -821,6 +821,8 @@ __bad_area_nosemaphore(struct pt_regs *regs, unsigned long error_code,
 		force_sig_pkuerr((void __user *)address, pkey);
 	else
 		force_sig_fault(SIGSEGV, si_code, (void __user *)address);
+
+	local_irq_disable_full();
 }
 
 static noinline void

The final code is

...
	oob_trap_notify(X86_TRAP_PF, regs);
	if (!running_inband())
		goto out;

	if (likely(show_unhandled_signals))
		show_signal_msg(regs, error_code, address, tsk);

	set_signal_archinfo(address, error_code);

	if (si_code == SEGV_PKUERR)
		force_sig_pkuerr((void __user *)address, pkey);
	else
		force_sig_fault(SIGSEGV, si_code, (void __user *)address);

	local_irq_disable_full();
out:
	oob_trap_unwind(X86_TRAP_PF, regs);
}

Do you remember why? As this was folded into the forward port, this 
delta never made it into anything older. If it is valid, we would need 
some reasoning. But this rather looks like a mismerge to me.

Jan

-- 
Siemens AG, Foundational Technologies
Linux Expert Center


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-11-12 13:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-11 12:58 local_irq_disable_full() in x86's __bad_area_nosemaphore Jan Kiszka
2026-11-11 22:57 ` Florian Bezdeka
2026-11-12  6:58   ` Jan Kiszka
2026-11-12  9:03     ` Philippe Gerum
2026-11-12  9:40       ` Jan Kiszka
2026-11-12 13:28         ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.