syzbot


INFO: rcu detected stall in sys_close (6)

Status: auto-obsoleted due to no activity on 2024/04/10 05:01
Subsystems: fs
[Documentation on labels]
First crash: 240d, last: 159d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_close (3) kernel 1 662d 662d 0/27 auto-obsoleted due to no activity on 2022/10/25 14:50
upstream INFO: rcu detected stall in sys_close (4) fs 1 585d 585d 0/27 auto-obsoleted due to no activity on 2023/02/13 19:04
linux-5.15 INFO: rcu detected stall in sys_close 1 51d 51d 0/3 upstream: reported on 2024/04/27 21:33
upstream INFO: rcu detected stall in sys_close (7) input usb fs C error 1 64d 60d 0/27 upstream: reported C repro on 2024/04/19 01:14
upstream INFO: rcu detected stall in sys_close fs 1 899d 899d 0/27 closed as invalid on 2022/02/08 10:10
upstream INFO: rcu detected stall in sys_close (2) fs 3 757d 807d 0/27 auto-closed as invalid on 2022/08/21 03:13
upstream INFO: rcu detected stall in sys_close (5) net C done 1 294d 294d 23/27 fixed on 2023/10/12 12:48

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (0 ticks this GP) idle=f964/1/0x4000000000000000 softirq=101660/101660 fqs=0
rcu: 	(detected by 1, t=10502 jiffies, g=152973, q=1484 ncpus=2)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 7265 Comm: udevd Not tainted 6.7.0-syzkaller-02320-gacc657692aed #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:addr_has_metadata mm/kasan/kasan.h:341 [inline]
RIP: 0010:check_region_inline mm/kasan/generic.c:177 [inline]
RIP: 0010:kasan_check_range+0x2b/0x290 mm/kasan/generic.c:189
Code: 0f 1f 00 55 41 57 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 52 02 00 00 48 89 fd 48 c1 ed 2f <81> fd fe ff 01 00 0f 86 3f 02 00 00 48 89 fb 48 c1 eb 03 49 ba 00
RSP: 0018:ffffc90000007b10 EFLAGS: 00000807
RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff816d90c0
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8f016ae8
RBP: 000000000001ffff R08: ffffffff8f016af0 R09: 1ffff1100c6b042b
R10: dffffc0000000000 R11: ffffed100c6b042c R12: 1ffff92000000f74
R13: ffffffff8936df1b R14: ffff888062a2d000 R15: dffffc0000000000
FS:  00007fae90324c80(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020003c80 CR3: 000000008faa5000 CR4: 00000000003506f0
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 instrument_atomic_read include/linux/instrumented.h:68 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
 cpumask_test_cpu include/linux/cpumask.h:504 [inline]
 cpu_online include/linux/cpumask.h:1104 [inline]
 trace_lock_release include/trace/events/lock.h:69 [inline]
 lock_release+0xb0/0x9c0 kernel/locking/lockdep.c:5765
 rcu_lock_release include/linux/rcupdate.h:306 [inline]
 rcu_read_unlock include/linux/rcupdate.h:780 [inline]
 advance_sched+0xb4f/0xcb0 net/sched/sch_taprio.c:998
 __run_hrtimer kernel/time/hrtimer.c:1688 [inline]
 __hrtimer_run_queues+0x59f/0xd20 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x396/0x980 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1065 [inline]
 __sysvec_apic_timer_interrupt+0x104/0x3a0 arch/x86/kernel/apic/apic.c:1082
 sysvec_apic_timer_interrupt+0x92/0xb0 arch/x86/kernel/apic/apic.c:1076
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:on_stack arch/x86/include/asm/stacktrace.h:55 [inline]
RIP: 0010:stack_access_ok arch/x86/kernel/unwind_orc.c:393 [inline]
RIP: 0010:deref_stack_reg+0x27/0x250 arch/x86/kernel/unwind_orc.c:403
Code: 44 00 00 55 41 57 41 56 41 55 41 54 53 48 83 ec 28 49 89 d6 48 89 34 24 48 89 fb 49 bf 00 00 00 00 00 fc ff df e8 29 b4 50 00 <48> 8d 6b 08 49 89 ec 49 c1 ec 03 43 80 3c 3c 00 74 08 48 89 ef e8
RSP: 0018:ffffc9000b017908 EFLAGS: 00000293
RAX: ffffffff813e2a47 RBX: ffffc9000b017a40 RCX: ffff88807af45940
RDX: 0000000000000000 RSI: ffffc9000b017ee0 RDI: ffffc9000b017a40
RBP: ffffc9000b017a40 R08: 0000000000000005 R09: ffffffff813e1680
R10: 0000000000000003 R11: ffff88807af45940 R12: ffffc9000b017ee8
R13: dffffc0000000000 R14: ffffc9000b017a80 R15: dffffc0000000000
 unwind_next_frame+0x1ab9/0x29e0 arch/x86/kernel/unwind_orc.c:648
 arch_stack_walk+0x146/0x1a0 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x117/0x1c0 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:47 [inline]
 kasan_save_track+0x3f/0x70 mm/kasan/common.c:68
 kasan_save_free_info+0x4e/0x60 mm/kasan/generic.c:634
 poison_slab_object+0xa6/0xe0 mm/kasan/common.c:241
 __kasan_slab_free+0x34/0x60 mm/kasan/common.c:257
 kasan_slab_free include/linux/kasan.h:184 [inline]
 slab_free_hook mm/slub.c:2121 [inline]
 slab_free mm/slub.c:4299 [inline]
 kmem_cache_free+0x102/0x2a0 mm/slub.c:4363
 file_free+0x24/0x1f0 fs/file_table.c:66
 __do_sys_close fs/open.c:1554 [inline]
 __se_sys_close fs/open.c:1539 [inline]
 __x64_sys_close+0x7e/0x100 fs/open.c:1539
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf5/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7fae8ff1a37f
Code: af 6a 0d 00 f7 d8 64 89 02 48 83 c8 ff 44 89 c7 48 89 04 24 e8 e1 fc f9 ff 48 8b 04 24 48 83 c4 28 c3 c3 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 10 48 8b 15 7a 6a 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffdb938d8d8 EFLAGS: 00000202 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 000055dec20da350 RCX: 00007fae8ff1a37f
RDX: 00007fae8ffed860 RSI: 0000000000000001 RDI: 0000000000000009
RBP: 0000000000000000 R08: 0000000000000009 R09: 0000000000000000
R10: 0000000000000010 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000000000007 R14: 0000000000000001 R15: 000055dec191ffc1
 </TASK>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10501 jiffies! g152973 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=0 timer-softirq=165246
rcu: rcu_preempt kthread starved for 10502 jiffies! g152973 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->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:I stack:27248 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5399 [inline]
 __schedule+0x177f/0x4960 kernel/sched/core.c:6726
 __schedule_loop kernel/sched/core.c:6801 [inline]
 schedule+0x149/0x260 kernel/sched/core.c:6816
 schedule_timeout+0x1bd/0x300 kernel/time/timer.c:2183
 rcu_gp_fqs_loop+0x30a/0x1500 kernel/rcu/tree.c:1631
 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:1830
 kthread+0x2d3/0x370 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/11 05:01 upstream acc657692aed 04815ef1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_close
2023/11/23 19:40 upstream 9b6de136b5f0 fc59b78e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in sys_close
2023/10/22 14:17 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing a04224da1f34 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-usb INFO: rcu detected stall in sys_close
* Struck through repros no longer work on HEAD.