syzbot


INFO: rcu detected stall in sys_close (4)

Status: auto-obsoleted due to no activity on 2023/02/13 19:04
Subsystems: fs
[Documentation on labels]
First crash: 580d, last: 580d
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 656d 656d 0/28 auto-obsoleted due to no activity on 2022/10/25 14:50
linux-5.15 INFO: rcu detected stall in sys_close 1 46d 46d 0/3 upstream: reported on 2024/04/27 21:33
upstream INFO: rcu detected stall in sys_close (7) usb fs input C error 1 59d 55d 0/28 upstream: reported C repro on 2024/04/19 01:14
upstream INFO: rcu detected stall in sys_close fs 1 894d 894d 0/28 closed as invalid on 2022/02/08 10:10
upstream INFO: rcu detected stall in sys_close (6) fs 3 154d 234d 0/28 auto-obsoleted due to no activity on 2024/04/10 05:01
upstream INFO: rcu detected stall in sys_close (2) fs 3 752d 801d 0/28 auto-closed as invalid on 2022/08/21 03:13
upstream INFO: rcu detected stall in sys_close (5) net C done 1 288d 288d 23/28 fixed on 2023/10/12 12:48

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (0 ticks this GP) idle=a464/1/0x4000000000000000 softirq=57885/57885 fqs=0
	(detected by 0, t=10502 jiffies, g=88601, q=298 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 22258 Comm: syz-executor.5 Not tainted 6.1.0-rc4-syzkaller-00045-g1767a722a708 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:__this_cpu_preempt_check+0x0/0x20 lib/smp_processor_id.c:65
Code: e8 8a 80 ff ff eb a2 0f 1f 00 0f 1f 44 00 00 48 c7 c6 e0 8e 49 8a 48 c7 c7 20 8f 49 8a e9 78 fe ff ff 0f 1f 84 00 00 00 00 00 <55> 48 89 fd 0f 1f 44 00 00 48 89 ee 5d 48 c7 c7 60 8f 49 8a e9 57
RSP: 0018:ffffc900003e8d70 EFLAGS: 00000046
RAX: 0000000000000001 RBX: 0000000000000001 RCX: 0000000000000001
RDX: 0000000000000000 RSI: ffff88807d263300 RDI: ffffffff89ec8f00
RBP: ffff88807d263300 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff88803e558080
R13: 0000000000000001 R14: 00000000ffffffff R15: ffff88803e558af8
FS:  0000555555eea400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fee8d1a8000 CR3: 0000000085431000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 lockdep_recursion_finish kernel/locking/lockdep.c:466 [inline]
 lock_is_held_type+0xd7/0x140 kernel/locking/lockdep.c:5712
 lock_is_held include/linux/lockdep.h:283 [inline]
 advance_sched+0xfa/0x9a0 net/sched/sch_taprio.c:705
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x690/0xfb0 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1096 [inline]
 __sysvec_apic_timer_interrupt+0x17c/0x640 arch/x86/kernel/apic/apic.c:1113
 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1107
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:lock_acquire+0x223/0x630 kernel/locking/lockdep.c:5636
Code: 87 a3 7e 83 f8 01 0f 85 3a 03 00 00 9c 58 f6 c4 02 0f 85 25 03 00 00 48 83 7c 24 08 00 74 01 fb 48 b8 00 00 00 00 00 fc ff df <48> 01 c3 48 c7 03 00 00 00 00 48 c7 43 08 00 00 00 00 48 8b 84 24
RSP: 0018:ffffc90003bf7e00 EFLAGS: 00000206
RAX: dffffc0000000000 RBX: 1ffff9200077efc3 RCX: ffffffff815e9bae
RDX: 1ffff11007cab159 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff9092a95f
R10: fffffbfff212552b R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: ffff88807dabf8d8 R15: 0000000000000000
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:350 [inline]
 close_fd+0x4c/0xa0 fs/file.c:658
 __do_sys_close fs/open.c:1439 [inline]
 __se_sys_close fs/open.c:1437 [inline]
 __x64_sys_close+0x2f/0xa0 fs/open.c:1437
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fee8d03d40b
Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44
RSP: 002b:00007ffebae9db90 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 0000000000000010 RCX: 00007fee8d03d40b
RDX: ffffffffffffffb8 RSI: ffffffffffffffff RDI: 000000000000000f
RBP: 0000000000000000 R08: 0000000000000000 R09: 00007fee8cc00000
R10: 00007fee8cc000a0 R11: 0000000000000293 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000001 R15: 00007ffebae9dc70
 </TASK>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10501 jiffies! g88601 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=1 timer-softirq=49035
rcu: rcu_preempt kthread starved for 10502 jiffies! g88601 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->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:I stack:28488 pid:15    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5191 [inline]
 __schedule+0xae9/0x53f0 kernel/sched/core.c:6503
 schedule+0xda/0x1b0 kernel/sched/core.c:6579
 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1935
 rcu_gp_fqs_loop+0x190/0x910 kernel/rcu/tree.c:1660
 rcu_gp_kthread+0x236/0x360 kernel/rcu/tree.c:1859
 kthread+0x2e4/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 22258 Comm: syz-executor.5 Not tainted 6.1.0-rc4-syzkaller-00045-g1767a722a708 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:check_kcov_mode kernel/kcov.c:173 [inline]
RIP: 0010:write_comp_data+0x21/0x90 kernel/kcov.c:236
Code: 84 00 00 00 00 00 0f 1f 00 65 8b 05 49 9f 86 7e 49 89 f1 89 c6 49 89 d2 81 e6 00 01 00 00 49 89 f8 65 48 8b 14 25 80 6f 02 00 <a9> 00 01 ff 00 74 0e 85 f6 74 59 8b 82 8c 15 00 00 85 c0 74 4f 8b
RSP: 0018:ffffc900003e8db0 EFLAGS: 00000046
RAX: 0000000000010002 RBX: ffff88807d263340 RCX: ffffffff878ea956
RDX: ffff88803e558080 RSI: 0000000000000000 RDI: 0000000000000005
RBP: ffff88802066f100 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001
R13: ffff88801d377600 R14: ffff8880b9b2a540 R15: ffff88807d263340
FS:  0000555555eea400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fee8d1a8000 CR3: 0000000085431000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 advance_sched+0x106/0x9a0 net/sched/sch_taprio.c:705
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x690/0xfb0 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1096 [inline]
 __sysvec_apic_timer_interrupt+0x17c/0x640 arch/x86/kernel/apic/apic.c:1113
 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1107
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:lock_acquire+0x223/0x630 kernel/locking/lockdep.c:5636
Code: 87 a3 7e 83 f8 01 0f 85 3a 03 00 00 9c 58 f6 c4 02 0f 85 25 03 00 00 48 83 7c 24 08 00 74 01 fb 48 b8 00 00 00 00 00 fc ff df <48> 01 c3 48 c7 03 00 00 00 00 48 c7 43 08 00 00 00 00 48 8b 84 24
RSP: 0018:ffffc90003bf7e00 EFLAGS: 00000206
RAX: dffffc0000000000 RBX: 1ffff9200077efc3 RCX: ffffffff815e9bae
RDX: 1ffff11007cab159 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff9092a95f
R10: fffffbfff212552b R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: ffff88807dabf8d8 R15: 0000000000000000
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:350 [inline]
 close_fd+0x4c/0xa0 fs/file.c:658
 __do_sys_close fs/open.c:1439 [inline]
 __se_sys_close fs/open.c:1437 [inline]
 __x64_sys_close+0x2f/0xa0 fs/open.c:1437
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fee8d03d40b
Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44
RSP: 002b:00007ffebae9db90 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 0000000000000010 RCX: 00007fee8d03d40b
RDX: ffffffffffffffb8 RSI: ffffffffffffffff RDI: 000000000000000f
RBP: 0000000000000000 R08: 0000000000000000 R09: 00007fee8cc00000
R10: 00007fee8cc000a0 R11: 0000000000000293 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000001 R15: 00007ffebae9dc70
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/10 23:22 upstream 1767a722a708 3ead01ad .config console log report info ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in sys_close
* Struck through repros no longer work on HEAD.