INFO: rcu detected stall in dentry_kill
Subsystems (5)
syzbot
syzbotHello,
syzbot found the following issue on:
HEAD commit: b85966adbf5d Merge tag 'net-next-7.2' of git://git.kernel... git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=15ffe3a1580000 kernel config: https://syzkaller.appspot.com/x/.config?x=9a9f723a32776544 dashboard link: https://syzkaller.appspot.com/bug?extid=0635dc2e2c3c21a6aa04 compiler: Debian clang version 22.1.6 (++20260514074242+fc4aad7b5db3-1~exp1~20260514074407.73), Debian LLD 22.1.6 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1192ccfe580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10dec2ae580000
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/d65306d96573/disk-b85966ad.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ef43139aab0e/vmlinux-b85966ad.xz
kernel image: https://storage.googleapis.com/syzbot-assets/26d4d1ab67c3/bzImage-b85966ad.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 0-...!: (1 GPs behind) idle=8aec/1/0x4000000000000000 softirq=15232/15238 fqs=0
rcu: (detected by 1, t=10502 jiffies, g=12001, q=779 ncpus=2)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 5691 Comm: udevd Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 RIP: 0010:lock_release+0x2d3/0x3c0 kernel/locking/lockdep.c:5893 Code: 65 c7 05 2c 91 98 11 00 00 00 00 eb b5 e8 45 d1 05 0a f7 c3 00 02 00 00 74 b9 65 48 8b 05 45 4c 98 11 48 3b 44 24 28 75 44 fb <48> 83 c4 30 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc 48 8d RSP: 0018:ffffc90000007c98 EFLAGS: 00000046 RAX: 2f357cb7f4202a00 RBX: ffff88803147f2a8 RCX: 0000000000010002 RDX: 0000000000010000 RSI: ffffffff8c291100 RDI: ffffffff8c2910c0 RBP: dffffc0000000000 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff52000000f90 R12: ffff8880611c6000 R13: ffffffff89b61a3a R14: ffff88803147f2c0 R15: ffff88803147f300 FS: 0000000000000000(0000) GS:ffff88812527c000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000564961a89a38 CR3: 000000000e746000 CR4: 00000000003526f0 Call Trace: <IRQ> __raw_spin_unlock include/linux/spinlock_api_smp.h:167 [inline] _raw_spin_unlock+0x16/0x50 kernel/locking/spinlock.c:190 spin_unlock include/linux/spinlock.h:390 [inline] advance_sched+0x99a/0xc80 net/sched/sch_taprio.c:988 __run_hrtimer kernel/time/hrtimer.c:2032 [inline] __hrtimer_run_queues+0x3bc/0xa10 kernel/time/hrtimer.c:2096 hrtimer_interrupt+0x448/0x910 kernel/time/hrtimer.c:2215 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1051 [inline] __sysvec_apic_timer_interrupt+0x102/0x430 arch/x86/kernel/apic/apic.c:1068 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1062 </IRQ> <TASK> asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:__unwind_start+0x514/0x660 arch/x86/kernel/unwind_orc.c:-1 Code: 10 42 80 3c 28 00 4c 8d 7b 38 74 08 4c 89 ff e8 12 7a ba 00 48 8b 44 24 08 49 39 07 0f 87 b6 fb ff ff 48 89 df e8 cc d0 ff ff <48> 8b 04 24 42 0f b6 04 28 84 c0 75 11 83 3b 00 4c 89 f1 0f 85 5b RSP: 0018:ffffc9000432f590 EFLAGS: 00000282 RAX: 00000000f218b401 RBX: ffffc9000432f5e8 RCX: 0000000080000001 RDX: ffffc9000432f601 RSI: ffffffff8c291100 RDI: ffff888034f03e00 RBP: 1ffff92000865ebf R08: ffffc9000432f5d8 R09: 0000000000000000 R10: ffffc9000432f638 R11: fffff52000865ec9 R12: 1ffff92000865ebe R13: dffffc0000000000 R14: ffffc9000432f5f8 R15: ffffc9000432f620 unwind_start arch/x86/include/asm/unwind.h:64 [inline] arch_stack_walk+0xe3/0x150 arch/x86/kernel/stacktrace.c:24 stack_trace_save+0xa9/0x100 kernel/stacktrace.c:122 kasan_save_stack+0x3e/0x60 mm/kasan/common.c:57 kasan_record_aux_stack+0xbd/0xd0 mm/kasan/generic.c:556 __call_rcu_common kernel/rcu/tree.c:3159 [inline] call_rcu+0xee/0x8b0 kernel/rcu/tree.c:3279 __destroy_inode+0x2a1/0x630 fs/inode.c:365 destroy_inode fs/inode.c:388 [inline] evict+0x8d4/0xb50 fs/inode.c:852 dentry_kill+0x1b9/0x880 fs/dcache.c:826 finish_dput+0x1a/0x260 fs/dcache.c:1001 __fput+0x675/0xa50 fs/file_table.c:520 task_work_run+0x1d9/0x270 kernel/task_work.c:233 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0x73a/0x2360 kernel/exit.c:1004 do_group_exit+0x22d/0x2f0 kernel/exit.c:1147 __do_sys_exit_group kernel/exit.c:1158 [inline] __se_sys_exit_group kernel/exit.c:1156 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1156 x64_sys_call+0x221a/0x2240 arch/x86/include/generated/asm/syscalls_64.h:232 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fbd5bcf16c5 Code: Unable to access opcode bytes at 0x7fbd5bcf169b. RSP: 002b:00007ffe420f4688 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000564961aa4f80 RCX: 00007fbd5bcf16c5 RDX: 00000000000000e7 RSI: fffffffffffffe68 RDI: 0000000000000000 RBP: 0000564961a80910 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe420f46d0 R14: 0000000000000000 R15: 0000000000000000 </TASK>
rcu: rcu_preempt kthread starved for 10502 jiffies! g12001 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=1
rcu: Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
task:rcu_preempt state:R running task stack:28040 pid:16 tgid:16 ppid:2 task_flags:0x208040 flags:0x00080000
Call Trace: <TASK> context_switch kernel/sched/core.c:5504 [inline] __schedule+0x17d9/0x56c0 kernel/sched/core.c:7228 __schedule_loop kernel/sched/core.c:7307 [inline] schedule+0x164/0x360 kernel/sched/core.c:7322 schedule_timeout+0x152/0x2c0 kernel/time/sleep_timeout.c:99 rcu_gp_fqs_loop+0x30c/0x11f0 kernel/rcu/tree.c:2123 rcu_gp_kthread+0x9e/0x2b0 kernel/rcu/tree.c:2325 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 </TASK> rcu: Stack dump where RCU GP kthread last ran: CPU: 1 UID: 0 PID: 5689 Comm: udevd Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 RIP: 0010:csd_lock_wait kernel/smp.c:342 [inline] RIP: 0010:smp_call_function_many_cond+0x10b0/0x14b0 kernel/smp.c:892 Code: c0 75 73 41 8b 1e 89 de 83 e6 01 31 ff e8 98 02 0c 00 83 e3 01 48 bb 00 00 00 00 00 fc ff df 75 07 e8 44 fe 0b 00 eb 37 f3 90 <41> 0f b6 04 1c 84 c0 75 10 41 f7 06 01 00 00 00 74 1e e8 29 fe 0b RSP: 0000:ffffc9000430f840 EFLAGS: 00000293 RAX: ffffffff81b9f7f7 RBX: dffffc0000000000 RCX: ffff88807f020000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc9000430f970 R08: ffffffff903116f7 R09: 1ffffffff20622de R10: dffffc0000000000 R11: fffffbfff20622df R12: 1ffff110170c85c5 R13: ffff8880b873c2c8 R14: ffff8880b8642e28 R15: 0000000000000000 FS: 00007fbd5c388880(0000) GS:ffff88812537c000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000564961a89a38 CR3: 0000000044280000 CR4: 00000000003526f0 Call Trace: <TASK> on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:1057 __flush_tlb_multi arch/x86/include/asm/paravirt.h:46 [inline] flush_tlb_multi arch/x86/mm/tlb.c:1361 [inline] flush_tlb_mm_range+0x5c4/0x1090 arch/x86/mm/tlb.c:1451 flush_tlb_page arch/x86/include/asm/tlbflush.h:345 [inline] ptep_clear_flush+0x120/0x170 mm/pgtable-generic.c:104 wp_page_copy mm/memory.c:3941 [inline] do_wp_page+0x3d52/0x4c70 mm/memory.c:4336 handle_pte_fault mm/memory.c:6443 [inline] __handle_mm_fault mm/memory.c:6565 [inline] handle_mm_fault+0x1490/0x3080 mm/memory.c:6734 do_user_addr_fault+0xa4d/0x1340 arch/x86/mm/fault.c:1339 handle_page_fault arch/x86/mm/fault.c:1479 [inline] exc_page_fault+0x6a/0xc0 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:595 RIP: 0033:0x7fbd5c3ada9a Code: 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 53 48 85 ff 74 2f 48 8b 47 08 48 39 c7 74 21 48 8b 1f 48 39 df 74 19 48 89 18 <48> 89 43 08 e8 8d d9 ff ff 48 89 d8 5b c3 0f 1f 84 00 00 00 00 00 RSP: 002b:00007ffe420f4620 EFLAGS: 00010202 RAX: 0000564961a8a0b0 RBX: 0000564961a89a30 RCX: 0000000000000000 RDX: 0000564961a95430 RSI: 0000564961a91f60 RDI: 0000564961a8f4e0 RBP: 0000564961a8f4e0 R08: 0000564961a91f70 R09: 0000000000000003 R10: 0000000000000000 R11: 0000000000000297 R12: 0000564958c24588 R13: 00007ffe420f46d0 R14: 0000000000000000 R15: 0000000000000000 </TASK>
---
This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at [email protected].
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup
syzbot
syzbotForwarded: [PATCH] locking/lockdep: skip irq save/restore in hardirq context in lock_release()
For archival purposes, forwarding an incoming command email to [email protected], [email protected].
For archival purposes, forwarding an incoming command email to [email protected], [email protected].
***
Subject: [PATCH] locking/lockdep: skip irq save/restore in hardirq context in lock_release()
Author: [email protected]
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git master
lock_release() performs a raw_local_irq_save/restore dance around its validation work. While safe in process and softirq context, this is dangerous in hardirq context where IRQs must remain disabled for the entire duration of the handler.
When lock_release() calls raw_local_irq_restore() inside a hardirq handler, it briefly re-enables IRQs, creating a window where a new interrupt can fire before the handler returns. This was observed with taprio's advance_sched() hrtimer callback - the temporary IRQ re-enablement inside lock_release() prevented CPU 0 from acknowledging a pending TLB flush IPI sent by CPU 1 via smp_call_function_many(). CPU 1 then spun indefinitely in csd_lock_wait(), starving the RCU grace-period kthread and triggering an RCU stall with eventual OOM.
lock_acquire() already handles the NMI case specially via lockdep_nmi() to avoid this class of problem. Mirror that pattern for hardirq context in lock_release() by introducing lockdep_hardirq() and skipping the irq save/restore dance when called from hardirq context.
--- kernel/locking/lockdep.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
kernel/locking/lockdep.c +17 -0
@@ -5872,6 +5872,15 @@ void lock_acquire(struct lockdep_map *lock, unsigned int subclass, }EXPORT_SYMBOL_GPL (lock_acquire); +static bool lockdep_hardirq (void ) +{ +if (raw_cpu_read (lockdep_recursion)) +return false; +if (!in_hardirq ()) +return false; +return true; +} +void lock_release (struct lockdep_map *lock,unsigned long ip) {unsigned long flags;
@@ -5882,6 +5891,14 @@ void lock_release(struct lockdep_map *lock, unsigned long ip) lock->key == &__lockdep_no_track__))return ; +if (lockdep_hardirq ()) { +lockdep_recursion_inc (); +if (__lock_release (lock, ip)) +check_chain_key (current); +lockdep_recursion_finish (); +return ; + } +raw_local_irq_save (flags);check_flags (flags);
Signature · 1 line
2.43.0
syzbot
syzbotForwarded: [PATCH] locking/lockdep: skip irq save/restore in hardirq context in lock_release()
In reply to syzbotFor archival purposes, forwarding an incoming command email to [email protected], [email protected].
For archival purposes, forwarding an incoming command email to [email protected], [email protected].
***
Subject: [PATCH] locking/lockdep: skip irq save/restore in hardirq context in lock_release()
Author: [email protected]
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git master
lock_release() performs a raw_local_irq_save/restore dance around its validation work. While safe in process and softirq context, this is dangerous in hardirq context where IRQs must remain disabled for the entire duration of the handler.
When lock_release() calls raw_local_irq_restore() inside a hardirq handler, it briefly re-enables IRQs, creating a window where a new interrupt can fire before the handler returns. This was observed with taprio's advance_sched() hrtimer callback - the temporary IRQ re-enablement inside lock_release() prevented CPU 0 from acknowledging a pending TLB flush IPI sent by CPU 1 via smp_call_function_many(). CPU 1 then spun indefinitely in csd_lock_wait(), starving the RCU grace-period kthread and triggering an RCU stall with eventual OOM.
lock_acquire() already handles the NMI case specially via lockdep_nmi() to avoid this class of problem. Mirror that pattern for hardirq context in lock_release() by introducing lockdep_hardirq() and skipping the irq save/restore dance when called from hardirq context.
--- kernel/locking/lockdep.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
kernel/locking/lockdep.c +17 -0
@@ -5872,6 +5872,15 @@ void lock_acquire(struct lockdep_map *lock, unsigned int subclass, }EXPORT_SYMBOL_GPL (lock_acquire); +static bool lockdep_hardirq (void ) +{ +if (raw_cpu_read (lockdep_recursion)) +return false; +if (!in_hardirq ()) +return false; +return true; +} +void lock_release (struct lockdep_map *lock,unsigned long ip) {unsigned long flags;
@@ -5882,6 +5891,14 @@ void lock_release(struct lockdep_map *lock, unsigned long ip) lock->key == &__lockdep_no_track__))return ; +if (lockdep_hardirq ()) { +lockdep_recursion_inc (); +if (__lock_release (lock, ip)) +check_chain_key (current); +lockdep_recursion_finish (); +return ; + } +raw_local_irq_save (flags);check_flags (flags);
Signature · 1 line
2.43.0
syzbot
syzbotForwarded: [PATCH] locking/lockdep: skip irq save/restore in hardirq context in lock_release()
In reply to syzbotFor archival purposes, forwarding an incoming command email to [email protected], [email protected].
For archival purposes, forwarding an incoming command email to [email protected], [email protected].
***
Subject: [PATCH] locking/lockdep: skip irq save/restore in hardirq context in lock_release()
Author: [email protected]
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
lock_release() performs a raw_local_irq_save/restore dance around its validation work. While safe in process and softirq context, this is dangerous in hardirq context where IRQs must remain disabled for the entire duration of the handler.
When lock_release() calls raw_local_irq_restore() inside a hardirq handler, it briefly re-enables IRQs, creating a window where a new interrupt can fire before the handler returns. This was observed with taprio's advance_sched() hrtimer callback - the temporary IRQ re-enablement inside lock_release() prevented CPU 0 from acknowledging a pending TLB flush IPI sent by CPU 1 via smp_call_function_many(). CPU 1 then spun indefinitely in csd_lock_wait(), starving the RCU grace-period kthread and triggering an RCU stall with eventual OOM.
lock_acquire() already handles the NMI case specially via lockdep_nmi() to avoid this class of problem. Mirror that pattern for hardirq context in lock_release() by introducing lockdep_hardirq() and skipping the irq save/restore dance when called from hardirq context.
--- kernel/locking/lockdep.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
kernel/locking/lockdep.c +17 -0
@@ -5872,6 +5872,15 @@ void lock_acquire(struct lockdep_map *lock, unsigned int subclass, }EXPORT_SYMBOL_GPL (lock_acquire); +static bool lockdep_hardirq (void ) +{ +if (raw_cpu_read (lockdep_recursion)) +return false; +if (!in_hardirq ()) +return false; +return true; +} +void lock_release (struct lockdep_map *lock,unsigned long ip) {unsigned long flags;
@@ -5882,6 +5891,14 @@ void lock_release(struct lockdep_map *lock, unsigned long ip) lock->key == &__lockdep_no_track__))return ; +if (lockdep_hardirq ()) { +lockdep_recursion_inc (); +if (__lock_release (lock, ip)) +check_chain_key (current); +lockdep_recursion_finish (); +return ; + } +raw_local_irq_save (flags);check_flags (flags);
Signature · 1 line
2.43.0