Commit 73cb4a2d8d7e ("parisc: Use irq_enter_rcu() to fix warning at kernel/context_tracking.c:367") switched do_cpu_irq_mask() from irq_enter() to irq_enter_rcu() to silence a lockdep_assert_irqs_disabled() in ct_irq_enter(). The irq_*_rcu() variants assume that the caller has already told RCU about the interrupt, which nothing on parisc does. An interrupt taken from the idle loop, where RCU is not watching, then runs its handlers with RCU still not watching: RCU not watching for tracepoint WARNING: include/trace/events/lock.h:68 at lock_release+0x428/0x708, CPU#3: swapper/3/0 ... Backtrace: ktime_get_update_offsets_now+0xf4/0x408 hrtimer_run_queues+0xd0/0x2e4 update_process_times+0xb0/0x2ac tick_periodic+0xac/0x284 tick_handle_periodic+0x80/0x150 timer_interrupt+0xc0/0xd8 __handle_irq_event_percpu+0x10c/0x95c handle_irq_event_percpu+0x34/0xc8 handle_percpu_irq+0x10c/0x154 generic_handle_irq+0x64/0xb0 call_on_stack+0x18/0x24 execute_on_irq_stack+0xd4/0x100 do_cpu_irq_mask+0x408/0x5c8 intr_return+0x0/0xc hardirqs last enabled at (112229): do_idle+0x158/0x584 That assertion fired only because lockdep did not know that interrupts are disabled on entry to do_cpu_irq_mask(). Commit a739c9192173 ("parisc: irq: Trace hardirq state in do_cpu_irq_mask()") fixed that by calling trace_hardirqs_off() first, so go back to irq_enter() and irq_exit(). Fixes: 73cb4a2d8d7e ("parisc: Use irq_enter_rcu() to fix warning at kernel/context_tracking.c:367") Cc: stable@vger.kernel.org # v6.9+ Signed-off-by: Matt Turner --- arch/parisc/kernel/irq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/parisc/kernel/irq.c b/arch/parisc/kernel/irq.c index d9f6cb04e4bc..3b4562e67db1 100644 --- a/arch/parisc/kernel/irq.c +++ b/arch/parisc/kernel/irq.c @@ -498,7 +498,7 @@ asmlinkage void do_cpu_irq_mask(struct pt_regs *regs) old_regs = set_irq_regs(regs); trace_hardirqs_off(); - irq_enter_rcu(); + irq_enter(); eirr_val = mfctl(23) & cpu_eiem & per_cpu(local_ack_eiem, cpu); if (!eirr_val) @@ -533,7 +533,7 @@ asmlinkage void do_cpu_irq_mask(struct pt_regs *regs) #endif /* CONFIG_IRQSTACKS */ out: - irq_exit_rcu(); + irq_exit(); set_irq_regs(old_regs); if (!irqs_disabled_flags(regs->gr[0])) trace_hardirqs_on(); -- 2.56.1