[RFC PATCH 12/36] arm64: entry: replace DAIF helpers with entry helpers
Vladimir Murzin
vladimir.murzin at arm.com
Wed Jul 15 05:31:54 PDT 2026
On 7/10/26 10:36, Jinjie Ruan wrote:
>> static void noinstr el1_undef(struct pt_regs *regs, unsigned long esr)
>> {
>> + arm64_exc_hwstate_t hwstate;
>> irqentry_state_t state;
>>
>> state = arm64_enter_from_kernel_mode(regs);
>> - local_daif_inherit(regs);
>> + hwstate = arm64_inherit_exc_context(regs);
> local_daif_inherit do not trace_hardirqs_off() but only
> trace_hardirqs_off(),but now arm64_inherit_exc_context() do it, is this
> a functional change?
When CONFIG_TRACE_IRQFLAGS is not set, there is no change in
behaviour. Otherwise, IIUC, we may continue to tell the kernel that
hard IRQs are disabled, but that should be harmless.
Could you please expand on your concern?
Thanks
Vladimir
More information about the linux-arm-kernel
mailing list