[PATCH v2] ARM: enable interrupts when unhandled user faults are triggered
Linus Walleij
linusw at kernel.org
Tue Jun 30 15:49:00 PDT 2026
On Mon, Jun 29, 2026 at 2:34 PM Xie Yuanbin <xieyuanbin1 at huawei.com> wrote:
> PREEMPT_RT requires interrupts to be enabled when sending signals.
>
> When do_DataAbort()/do_PrefetchAbort() triggers unhandled user faults,
> that is `inf->fn()` return a non-zero value, and the interrupts are not
> enabled within the hook function, force_sig_fault() will be called
> with interrupts disabled.
>
> This can be triggered by user programs executing the bkpt instruction,
> with kernel config CONFIG_PERF_EVENTS=n.
>
> Enable interrupts in do_DataAbort()/do_PrefetchAbort() when unhandled
> user faults are triggered to fix the issue.
>
> Fixes: c6e61c06d606 ("ARM: 9463/1: Allow to enable RT")
>
Skip blank line.
> Suggested-by: Russell King <linux at armlinux.org.uk>
> Suggested-by: Sebastian Andrzej Siewior <bigeasy at linutronix.de>
> Signed-off-by: Xie Yuanbin <xieyuanbin1 at huawei.com>
I had something like this in my (currently put on ice) generic entry
patch series:
https://lore.kernel.org/linux-arm-kernel/20250225-arm-generic-entry-v5-30-2f02313653e5@linaro.org/
This goes in that direction so:
Reviewed-by: Linus Walleij <linusw at kernel.org>
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list