syzbot


INFO: rcu detected stall in sys_close_range

Status: upstream: reported syz repro on 2025/03/03 18:24
Reported-by: syzbot+296695c8ae3c7da3d511@syzkaller.appspotmail.com
First crash: 8d17h, last: 8d17h
Bug presence (1)
Date Name Commit Repro Result
2025/03/03 upstream (ToT) 99fa936e8e4f C Failed due to an error; will retry later

Sample crash report:
rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 0-.... } 2645 jiffies s: 31881 root: 0x1/.
rcu: blocking rcu_node structures (internal RCU debug):
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 11244 Comm: syz.1.6276 Not tainted 6.1.129-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:check_kcov_mode kernel/kcov.c:182 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x13/0x60 kernel/kcov.c:216
Code: 48 8b 3d 98 0a 16 0d 48 89 de 5b e9 67 81 56 00 cc cc cc cc cc cc cc 48 8b 04 24 65 48 8b 0d 64 d8 77 7e 65 8b 15 65 d8 77 7e <81> e2 00 01 ff 00 74 11 81 fa 00 01 00 00 75 35 83 b9 1c 16 00 00
RSP: 0018:ffffc900000078f8 EFLAGS: 00000097
RAX: ffffffff819778e1 RBX: 0000000000000000 RCX: ffff88801bb3bb80
RDX: 0000000000010101 RSI: 0000000000000000 RDI: 0000000000000008
RBP: ffffc900000079d8 R08: ffffffff819778d3 R09: fffffbfff1d413e6
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000000
FS:  0000555574795500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff34c03f00 CR3: 0000000030078000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 irq_work_run+0xa1/0x350 kernel/irq_work.c:251
 __sysvec_irq_work+0xbb/0x360 arch/x86/kernel/irq_work.c:22
 instr_sysvec_irq_work arch/x86/kernel/irq_work.c:17 [inline]
 sysvec_irq_work+0x4a/0xc0 arch/x86/kernel/irq_work.c:17
 asm_sysvec_irq_work+0x16/0x20 arch/x86/include/asm/idtentry.h:728
RIP: 0010:rcu_read_unlock_special+0x84/0x540 kernel/rcu/tree_plugin.h:682
Code: f1 f1 f1 00 f2 f2 f2 49 89 04 17 66 41 c7 44 17 09 f3 f3 41 c6 44 17 0b f3 65 44 8b 25 6d 1a 8e 7e 41 f7 c4 00 00 f0 00 74 45 <48> c7 44 24 20 0e 36 e0 45 4a c7 04 3a 00 00 00 00 66 42 c7 44 3a
RSP: 0018:ffffc90000007ac0 EFLAGS: 00000206
RAX: c656ed770572fc00 RBX: 1ffff92000000f60 RCX: ffffffff973bd103
RDX: dffffc0000000000 RSI: ffffffff8b0c1d40 RDI: ffffffff8b5f6d80
RBP: ffffc90000007ba0 R08: ffffffff81b609ac R09: ffffed10171c6ad6
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff8d333500
R13: ffff88801bb3bfd8 R14: ffffc90000007b00 R15: 1ffff92000000f5c
 __rcu_read_unlock+0x92/0x100 kernel/rcu/tree_plugin.h:426
 rcu_read_unlock include/linux/rcupdate.h:823 [inline]
 ieee80211_iterate_active_interfaces_atomic+0x153/0x170 net/mac80211/util.c:826
 mac80211_hwsim_beacon+0xd0/0x1e0 drivers/net/wireless/mac80211_hwsim.c:2142
 __run_hrtimer kernel/time/hrtimer.c:1689 [inline]
 __hrtimer_run_queues+0x5e5/0xe50 kernel/time/hrtimer.c:1753
 hrtimer_run_softirq+0x196/0x2c0 kernel/time/hrtimer.c:1770
 handle_softirqs+0x2ee/0xa40 kernel/softirq.c:578
 __do_softirq kernel/softirq.c:612 [inline]
 invoke_softirq kernel/softirq.c:452 [inline]
 __irq_exit_rcu+0x157/0x240 kernel/softirq.c:661
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:673
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
 sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:finish_task_switch+0x1d3/0x810 kernel/sched/core.c:5122
Code: 41 0b 00 48 83 c4 08 4c 89 f7 e8 68 31 00 00 0f 1f 44 00 00 4c 89 f7 e8 5b f9 5b 09 e8 f6 f5 31 00 fb 49 8d bc 24 f8 15 00 00 <48> 89 f8 48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df 42 0f b6 04 28
RSP: 0018:ffffc90004487ae8 EFLAGS: 00000282
RAX: c656ed770572fc00 RBX: ffff88802a1abbb4 RCX: ffffffff973bd103
RDX: dffffc0000000000 RSI: ffffffff8b0c1d40 RDI: ffff88801bb3d178
RBP: ffffc90004487b30 R08: ffffffff81b609ac R09: ffffed10171c6ad6
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88801bb3bb80
R13: 1ffff110171c76e3 R14: ffff8880b8e3a9c0 R15: ffff8880b8e3b718
 context_switch kernel/sched/core.c:5246 [inline]
 __schedule+0x1447/0x4570 kernel/sched/core.c:6560
 preempt_schedule_common+0x83/0xd0 kernel/sched/core.c:6729
 preempt_schedule+0xd9/0xe0 kernel/sched/core.c:6753
 preempt_schedule_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:34
 __raw_spin_unlock include/linux/spinlock_api_smp.h:143 [inline]
 _raw_spin_unlock+0x36/0x40 kernel/locking/spinlock.c:186
 spin_unlock include/linux/spinlock.h:391 [inline]
 __range_close fs/file.c:693 [inline]
 __close_range+0x582/0x7d0 fs/file.c:747
 __do_sys_close_range fs/open.c:1476 [inline]
 __se_sys_close_range fs/open.c:1473 [inline]
 __x64_sys_close_range+0x76/0x80 fs/open.c:1473
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fef7bd8d169
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc9a8369f8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: ffffffffffffffda RBX: 000000000007e05c RCX: 00007fef7bd8d169
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000001 R09: 000000039a836cef
R10: 00007fef7ba00000 R11: 0000000000000246 R12: 00007fef7bfa5fac
R13: 00007fef7bfa5fa0 R14: ffffffffffffffff R15: 0000000000000005
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/03 18:23 linux-6.1.y 3a8358583626 c3901742 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_close_range
* Struck through repros no longer work on HEAD.