syzbot


INFO: rcu detected stall in sys_nanosleep (8)

Status: auto-obsoleted due to no activity on 2023/07/26 06:37
Subsystems: kernel
[Documentation on labels]
First crash: 369d, last: 369d
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_nanosleep (2) cgroups mm 94 1574d 1574d 0/26 closed as invalid on 2020/01/08 05:23
upstream INFO: rcu detected stall in sys_nanosleep (4) kernel 154 1573d 1574d 0/26 closed as invalid on 2020/01/09 08:13
upstream INFO: rcu detected stall in sys_nanosleep (6) kernel 2 1329d 1374d 0/26 auto-closed as invalid on 2020/12/07 19:22
upstream INFO: rcu detected stall in sys_nanosleep (7) kernel 1 983d 983d 0/26 auto-closed as invalid on 2021/11/18 16:55
upstream INFO: rcu detected stall in sys_nanosleep kernel 742 1608d 1610d 0/26 closed as invalid on 2019/12/04 14:14
upstream INFO: rcu detected stall in sys_nanosleep (5) kernel 2 1496d 1498d 0/26 auto-closed as invalid on 2020/06/23 18:16
upstream INFO: rcu detected stall in sys_nanosleep (3) cgroups mm 4 1574d 1574d 0/26 closed as invalid on 2020/01/08 05:33

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (0 ticks this GP) idle=98cc/1/0x4000000000000000 softirq=63220/63220 fqs=0
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P4431/1:b..l
rcu: 	(detected by 1, t=10502 jiffies, g=89385, q=134 ncpus=2)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 4968 Comm: syz-fuzzer Not tainted 6.3.0-syzkaller-07919-g6e98b09da931 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
RIP: 0010:get_current arch/x86/include/asm/current.h:41 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x8/0x60 kernel/kcov.c:206
Code: 00 00 f3 0f 1e fa 53 48 89 fb e8 13 00 00 00 48 8b 3d a4 4d c9 0c 48 89 de 5b e9 73 f3 55 00 0f 1f 00 f3 0f 1e fa 48 8b 04 24 <65> 48 8b 0d 70 aa 78 7e 65 8b 15 71 aa 78 7e f7 c2 00 01 ff 00 74
RSP: 0018:ffffc90000007d58 EFLAGS: 00000046
RAX: ffffffff817a637a RBX: ffff88803642e368 RCX: 0000000000010002
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000001
RBP: ffffc90000007eb0 R08: dffffc0000000000 R09: ffffed10173056e1
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880b982b700
R13: ffffffff88cabb80 R14: ffff88803642e340 R15: dffffc0000000000
FS:  000000c00005a090(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007eff30ba7ed8 CR3: 000000002c794000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 arch_static_branch arch/x86/include/asm/jump_label.h:27 [inline]
 static_key_false include/linux/jump_label.h:207 [inline]
 trace_hrtimer_expire_entry include/trace/events/timer.h:235 [inline]
 __run_hrtimer kernel/time/hrtimer.c:1682 [inline]
 __hrtimer_run_queues+0x49a/0xd10 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x396/0x980 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
 __sysvec_apic_timer_interrupt+0x13f/0x480 arch/x86/kernel/apic/apic.c:1112
 sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:finish_lock_switch+0x95/0x110 kernel/sched/core.c:5066
Code: 45 31 c9 68 57 03 61 81 e8 c8 80 09 00 48 83 c4 08 4c 89 ff e8 0c c7 fe ff 66 90 4c 89 ff e8 92 21 50 09 e8 8d a3 30 00 fb 5b <41> 5c 41 5d 41 5e 41 5f c3 44 89 f1 80 e1 07 80 c1 03 38 c1 7c 83
RSP: 0018:ffffc90003a0f978 EFLAGS: 00000282
RAX: 24181f93b0b16300 RBX: ffff888022e9bbb4 RCX: ffffffff91af5003
RDX: dffffc0000000000 RSI: ffffffff8aea7dc0 RDI: ffffffff8b3803a0
RBP: ffffc90003a0f9f0 R08: dffffc0000000000 R09: fffffbfff1ca8ab6
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff11017307983 R14: ffff8880b983cc18 R15: ffff8880b983bec0
 finish_task_switch+0x134/0x650 kernel/sched/core.c:5184
 context_switch kernel/sched/core.c:5310 [inline]
 __schedule+0x1743/0x4630 kernel/sched/core.c:6625
 schedule+0xc3/0x180 kernel/sched/core.c:6701
 do_nanosleep+0x18a/0x610 kernel/time/hrtimer.c:2044
 hrtimer_nanosleep+0x226/0x460 kernel/time/hrtimer.c:2097
 __do_sys_nanosleep kernel/time/hrtimer.c:2132 [inline]
 __se_sys_nanosleep kernel/time/hrtimer.c:2118 [inline]
 __x64_sys_nanosleep+0x269/0x2c0 kernel/time/hrtimer.c:2118
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x46af7d
Code: 8b 44 24 20 b9 40 42 0f 00 f7 f1 48 89 04 24 b8 e8 03 00 00 f7 e2 48 89 44 24 08 48 89 e7 be 00 00 00 00 b8 23 00 00 00 0f 05 <48> 8b 6c 24 10 48 83 c4 18 c3 cc cc cc cc cc cc cc cc cc cc cc cc
RSP: 002b:000000c000069f10 EFLAGS: 00000202 ORIG_RAX: 0000000000000023
RAX: ffffffffffffffda RBX: 0000000000002710 RCX: 000000000046af7d
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000c000069f10
RBP: 000000c000069f20 R08: 000000000000e7ba R09: 0000000000000010
R10: 00007fff3975d080 R11: 0000000000000202 R12: 000000c000069f10
R13: 000000c01eea5800 R14: 000000c0000064e0 R15: 0000000000000100
 </TASK>
task:udevd           state:R  running task     stack:22600 pid:4431  ppid:1      flags:0x00004002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5307 [inline]
 __schedule+0x173b/0x4630 kernel/sched/core.c:6625
 preempt_schedule_irq+0xfb/0x1b0 kernel/sched/core.c:6937
 irqentry_exit+0x57/0x80 kernel/entry/common.c:433
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:lock_acquire+0x25a/0x520 kernel/locking/lockdep.c:5695
Code: 2b 00 74 08 4c 89 f7 e8 04 4d 77 00 f6 44 24 61 02 0f 85 84 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25
RSP: 0018:ffffc9000310fba0 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff92000621f80 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: ffffffff8aea8f40 RDI: ffffffff8b3803a0
RBP: ffffc9000310fd00 R08: dffffc0000000000 R09: fffffbfff205fa39
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000621f7c
R13: dffffc0000000000 R14: ffffc9000310fc00 R15: 0000000000000246
 rcu_lock_acquire+0x2e/0x40 include/linux/rcupdate.h:327
 rcu_read_lock include/linux/rcupdate.h:773 [inline]
 mntput_no_expire+0xb7/0x770 fs/namespace.c:1203
 do_readlinkat+0x29e/0x3b0 fs/stat.c:492
 __do_sys_readlink fs/stat.c:510 [inline]
 __se_sys_readlink fs/stat.c:507 [inline]
 __x64_sys_readlink+0x7f/0x90 fs/stat.c:507
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3e23517d47
RSP: 002b:00007ffcc339ff58 EFLAGS: 00000246 ORIG_RAX: 0000000000000059
RAX: ffffffffffffffda RBX: 00007ffcc339ff68 RCX: 00007f3e23517d47
RDX: 0000000000000400 RSI: 00007ffcc339ff68 RDI: 00007ffcc33a0448
RBP: 0000000000000400 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000010 R11: 0000000000000246 R12: 00007ffcc33a0448
R13: 00007ffcc33a03b8 R14: 000055a1be818910 R15: 0000000000000000
 </TASK>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10501 jiffies! g89385 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=0 timer-softirq=56238
rcu: rcu_preempt kthread starved for 10502 jiffies! g89385 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:26304 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5307 [inline]
 __schedule+0x173b/0x4630 kernel/sched/core.c:6625
 schedule+0xc3/0x180 kernel/sched/core.c:6701
 schedule_timeout+0x1bd/0x310 kernel/time/timer.c:2167
 rcu_gp_fqs_loop+0x2c6/0x1010 kernel/rcu/tree.c:1609
 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:1808
 kthread+0x2b2/0x350 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 4968 Comm: syz-fuzzer Not tainted 6.3.0-syzkaller-07919-g6e98b09da931 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
RIP: 0010:__lock_release kernel/locking/lockdep.c:5395 [inline]
RIP: 0010:lock_release+0x2f8/0x9d0 kernel/locking/lockdep.c:5711
Code: 85 25 05 00 00 45 89 2c 24 41 81 fd ff ff 1f 00 0f 87 b9 02 00 00 49 bc 00 00 00 00 00 fc ff df 48 8b 44 24 48 42 0f b6 04 20 <84> c0 0f 85 d0 04 00 00 89 16 4c 89 f8 48 c1 e8 03 42 80 3c 20 00
RSP: 0018:ffffc90000007b40 EFLAGS: 00000083
RAX: 0000000000000000 RBX: 1ffff11004ddec85 RCX: ffffc90000007b03
RDX: 0000000000000000 RSI: ffff888026ef6400 RDI: ffff888026ef6408
RBP: ffffc90000007c70 R08: dffffc0000000000 R09: fffffbfff1ca8ab6
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 00000000000c4ce5 R14: dffffc0000000000 R15: ffff888026ef6408
FS:  000000c00005a090(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007eff30ba7ed8 CR3: 000000002c794000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __raw_spin_unlock include/linux/spinlock_api_smp.h:141 [inline]
 _raw_spin_unlock+0x16/0x40 kernel/locking/spinlock.c:186
 spin_unlock include/linux/spinlock.h:390 [inline]
 advance_sched+0x9bd/0xc80 net/sched/sch_taprio.c:986
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x59f/0xd10 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x396/0x980 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
 __sysvec_apic_timer_interrupt+0x13f/0x480 arch/x86/kernel/apic/apic.c:1112
 sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:finish_lock_switch+0x95/0x110 kernel/sched/core.c:5066
Code: 45 31 c9 68 57 03 61 81 e8 c8 80 09 00 48 83 c4 08 4c 89 ff e8 0c c7 fe ff 66 90 4c 89 ff e8 92 21 50 09 e8 8d a3 30 00 fb 5b <41> 5c 41 5d 41 5e 41 5f c3 44 89 f1 80 e1 07 80 c1 03 38 c1 7c 83
RSP: 0018:ffffc90003a0f978 EFLAGS: 00000282
RAX: 24181f93b0b16300 RBX: ffff888022e9bbb4 RCX: ffffffff91af5003
RDX: dffffc0000000000 RSI: ffffffff8aea7dc0 RDI: ffffffff8b3803a0
RBP: ffffc90003a0f9f0 R08: dffffc0000000000 R09: fffffbfff1ca8ab6
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff11017307983 R14: ffff8880b983cc18 R15: ffff8880b983bec0
 finish_task_switch+0x134/0x650 kernel/sched/core.c:5184
 context_switch kernel/sched/core.c:5310 [inline]
 __schedule+0x1743/0x4630 kernel/sched/core.c:6625
 schedule+0xc3/0x180 kernel/sched/core.c:6701
 do_nanosleep+0x18a/0x610 kernel/time/hrtimer.c:2044
 hrtimer_nanosleep+0x226/0x460 kernel/time/hrtimer.c:2097
 __do_sys_nanosleep kernel/time/hrtimer.c:2132 [inline]
 __se_sys_nanosleep kernel/time/hrtimer.c:2118 [inline]
 __x64_sys_nanosleep+0x269/0x2c0 kernel/time/hrtimer.c:2118
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x46af7d
Code: 8b 44 24 20 b9 40 42 0f 00 f7 f1 48 89 04 24 b8 e8 03 00 00 f7 e2 48 89 44 24 08 48 89 e7 be 00 00 00 00 b8 23 00 00 00 0f 05 <48> 8b 6c 24 10 48 83 c4 18 c3 cc cc cc cc cc cc cc cc cc cc cc cc
RSP: 002b:000000c000069f10 EFLAGS: 00000202 ORIG_RAX: 0000000000000023
RAX: ffffffffffffffda RBX: 0000000000002710 RCX: 000000000046af7d
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000c000069f10
RBP: 000000c000069f20 R08: 000000000000e7ba R09: 0000000000000010
R10: 00007fff3975d080 R11: 0000000000000202 R12: 000000c000069f10
R13: 000000c01eea5800 R14: 000000c0000064e0 R15: 0000000000000100
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/27 06:33 upstream 6e98b09da931 19a3dabe .config console log report info ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_nanosleep
* Struck through repros no longer work on HEAD.