[PATCH] ARM: enable interrupts when arm_notify_die() is handling user mode errors

Sebastian Andrzej Siewior bigeasy at linutronix.de
Mon Jun 29 02:40:22 PDT 2026


On 2026-06-29 16:31:50 [+0800], Xie Yuanbin wrote:
> Thanks. So, can I take it that you agree with the first one?
> 
> On Thu, 25 Jun 2026 20:26:12 +0800, Xie Yuanbin wrote:
> > ```c
> > 	if (!inf->fn(addr, ifsr | FSR_LNX_PF, regs))
> > 		return;
> >
> > 	if (likely(user_mode(regs)))
> > 		local_irq_enable();
> >
> > 	pr_alert("8<--- cut here ---\n");

Yes.
If this is moved to the callers of arm_notify_die() then I don't know
what to do about baddataabort(). It looks like it gets invoked with
disabled interrupts, too but I'm not sure. This looks like pre ARM v7.
Is it reasonable to add such a check there?

Sebastian



More information about the linux-arm-kernel mailing list