syzbot


INFO: rcu detected stall in close_range

Status: auto-obsoleted due to no activity on 2025/07/22 12:43
Subsystems: fs
[Documentation on labels]
First crash: 126d, last: 126d
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: rcu detected stall in sys_close_range origin:lts-only 1 syz done 1 177d 177d 0/3 upstream: reported syz repro on 2025/03/03 18:24
linux-6.6 INFO: rcu detected stall in sys_close_range origin:lts-only 1 syz 1 14d 14d 0/2 upstream: reported syz repro on 2025/08/13 16:29

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (1 GPs behind) idle=47ac/1/0x4000000000000000 softirq=104877/104878 fqs=0
rcu: 	(detected by 0, t=10506 jiffies, g=98401, q=290 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 UID: 0 PID: 2227 Comm: syz.7.5667 Not tainted 6.15.0-rc3-syzkaller-00019-gbc3372351d0c #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:__lock_release kernel/locking/lockdep.c:5512 [inline]
RIP: 0010:lock_release+0xc9/0x3e0 kernel/locking/lockdep.c:5887
Code: 01 00 00 48 c7 44 24 20 00 00 00 00 9c 8f 44 24 20 4c 8b 74 24 20 fa 48 c7 c7 03 57 50 8e e8 0e 57 91 0a 65 ff 05 47 23 ca 11 <c7> 44 24 20 01 00 00 00 83 3d 58 9b c1 0e 00 0f 84 1a 01 00 00 48
RSP: 0018:ffffc90000a08b18 EFLAGS: 00000002
RAX: 0000000000000001 RBX: ffffffff93686020 RCX: 0000000000000002
RDX: ffff888057f4e518 RSI: ffffffff8e505703 RDI: ffffffff8ca1b6c0
RBP: ffffffff850b5b91 R08: 0000000000000003 R09: fffff52000141160
R10: dffffc0000000000 R11: fffff52000141160 R12: 1ffff92000141170
R13: ffff888024f79e00 R14: 0000000000000002 R15: ffffffff9a916988
FS:  00005555817af500(0000) GS:ffff88812509a000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b3261eff8 CR3: 0000000063ff0000 CR4: 0000000000350ef0
Call Trace:
 <IRQ>
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:149 [inline]
 _raw_spin_unlock_irqrestore+0x7a/0x140 kernel/locking/spinlock.c:194
 debug_object_deactivate+0x2e1/0x390 lib/debugobjects.c:888
 debug_hrtimer_deactivate kernel/time/hrtimer.c:450 [inline]
 debug_deactivate+0x1b/0x220 kernel/time/hrtimer.c:490
 __run_hrtimer kernel/time/hrtimer.c:1729 [inline]
 __hrtimer_run_queues+0x310/0xd40 kernel/time/hrtimer.c:1825
 hrtimer_interrupt+0x403/0xa40 kernel/time/hrtimer.c:1887
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline]
 __sysvec_apic_timer_interrupt+0x112/0x420 arch/x86/kernel/apic/apic.c:1055
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
 sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1049
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:check_region_inline mm/kasan/generic.c:177 [inline]
RIP: 0010:kasan_check_range+0x31/0x2a0 mm/kasan/generic.c:189
Code: 41 56 41 54 53 b0 01 48 85 f6 0f 84 a0 01 00 00 4c 8d 04 37 49 39 f8 0f 82 63 02 00 00 48 89 fd 48 c1 ed 2f 81 fd fe ff 01 00 <0f> 86 50 02 00 00 48 89 fb 48 c1 eb 03 49 ba 00 00 00 00 00 fc ff
RSP: 0018:ffffc9000cecfd10 EFLAGS: 00000202
RAX: ffffffff823f2e01 RBX: ffff888063fd4c40 RCX: ffffffff823f2e4a
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888063fd4da0
RBP: 000000000001ffff R08: ffff888063fd4da8 R09: ffffc9000cecfc20
R10: dffffc0000000000 R11: fffff520019d9fa3 R12: ffff888063fd4da0
R13: 1ffff920019d9fac R14: ffffffff93686020 R15: dffffc0000000000
 instrument_atomic_read include/linux/instrumented.h:68 [inline]
 atomic_long_read include/linux/atomic/atomic-instrumented.h:3188 [inline]
 file_ref_put_close include/linux/file_ref.h:183 [inline]
 fput_close+0x8a/0x270 fs/file_table.c:581
 filp_close+0x28/0x40 fs/open.c:1555
 __range_close fs/file.c:752 [inline]
 __do_sys_close_range fs/file.c:811 [inline]
 __se_sys_close_range+0x373/0x6c0 fs/file.c:775
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xf3/0x210 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f6c42f8e969
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:00007ffc1f9e4bc8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: ffffffffffffffda RBX: 00000000000ae892 RCX: 00007f6c42f8e969
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007f6c431b7ba0 R08: 0000000000000001 R09: 000000041f9e4ebf
R10: 00007f6c42e00000 R11: 0000000000000246 R12: 00007f6c431b5fac
R13: 00007f6c431b5fa0 R14: ffffffffffffffff R15: 00007ffc1f9e4ce0
 </TASK>
rcu: rcu_preempt kthread starved for 10506 jiffies! g98401 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=0
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:26520 pid:16    tgid:16    ppid:2      task_flags:0x208040 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5382 [inline]
 __schedule+0x1b88/0x5240 kernel/sched/core.c:6767
 __schedule_loop kernel/sched/core.c:6845 [inline]
 schedule+0x163/0x360 kernel/sched/core.c:6860
 schedule_timeout+0x15b/0x2b0 kernel/time/sleep_timeout.c:99
 rcu_gp_fqs_loop+0x2e1/0x1340 kernel/rcu/tree.c:2046
 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2248
 kthread+0x7b9/0x940 kernel/kthread.c:464
 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:153
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 UID: 0 PID: 2226 Comm: syz.2.5666 Not tainted 6.15.0-rc3-syzkaller-00019-gbc3372351d0c #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:rep_nop arch/x86/include/asm/vdso/processor.h:13 [inline]
RIP: 0010:cpu_relax arch/x86/include/asm/vdso/processor.h:18 [inline]
RIP: 0010:csd_lock_wait kernel/smp.c:340 [inline]
RIP: 0010:smp_call_function_many_cond+0x1baa/0x2d40 kernel/smp.c:885
Code: b6 04 03 84 c0 75 7e 45 8b 65 00 44 89 e6 83 e6 01 31 ff e8 88 dd 0b 00 41 83 e4 01 4c 8b 64 24 68 75 07 e8 38 d9 0b 00 eb 41 <f3> 90 48 b8 00 00 00 00 00 fc ff df 0f b6 04 03 84 c0 75 11 41 f7
RSP: 0018:ffffc9000ceff600 EFLAGS: 00000293
RAX: ffffffff81b6e40d RBX: 1ffff110170e7e91 RCX: ffff8880596b0000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc9000ceff800 R08: ffffffff81b6e3d8 R09: 1ffffffff20bfcae
R10: dffffc0000000000 R11: fffffbfff20bfcaf R12: ffff8880b863ad08
R13: ffff8880b873f488 R14: ffff8880b863ad00 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff888124f9a000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f18ca19f000 CR3: 0000000030ad6000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:1052
 __flush_tlb_multi arch/x86/include/asm/paravirt.h:91 [inline]
 flush_tlb_multi arch/x86/mm/tlb.c:1275 [inline]
 flush_tlb_mm_range+0xb8d/0x13f0 arch/x86/mm/tlb.c:1365
 tlb_flush arch/x86/include/asm/tlb.h:23 [inline]
 tlb_flush_mmu_tlbonly include/asm-generic/tlb.h:480 [inline]
 tlb_flush_mmu+0x1aa/0x690 mm/mmu_gather.c:403
 tlb_finish_mmu+0xd4/0x200 mm/mmu_gather.c:496
 exit_mmap+0x5b1/0xde0 mm/mmap.c:1297
 __mmput+0x115/0x420 kernel/fork.c:1379
 exit_mm+0x221/0x310 kernel/exit.c:589
 do_exit+0x994/0x27f0 kernel/exit.c:940
 do_group_exit+0x207/0x2c0 kernel/exit.c:1102
 __do_sys_exit_group kernel/exit.c:1113 [inline]
 __se_sys_exit_group kernel/exit.c:1111 [inline]
 __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1111
 x64_sys_call+0x26c3/0x26d0 arch/x86/include/generated/asm/syscalls_64.h:232
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xf3/0x210 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f697ff8e969
Code: Unable to access opcode bytes at 0x7f697ff8e93f.
RSP: 002b:00007ffe3e6aa448 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f697ff8e969
RDX: 0000000000000064 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007ffe3e6aa4ac R08: 000000043e6aa53f R09: 00000000000927c0
R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000001
R13: 00000000000927c0 R14: 00000000000ae7dc R15: 00007ffe3e6aa500
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/23 12:36 upstream bc3372351d0c d971f7e2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in close_range
* Struck through repros no longer work on HEAD.