syzbot


INFO: rcu detected stall in sys_clock_nanosleep (2)

Status: auto-obsoleted due to no activity on 2024/09/21 09:26
Reported-by: syzbot+d81dae19476f63cd6030@syzkaller.appspotmail.com
First crash: 327d, last: 172d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: rcu detected stall in sys_clock_nanosleep 1 448d 448d 0/3 auto-obsoleted due to no activity on 2023/12/20 18:13
upstream INFO: rcu detected stall in sys_clock_nanosleep (5) kernel C error done 78 3d06h 473d 0/28 upstream: reported C repro on 2023/08/17 09:25
upstream INFO: rcu detected stall in sys_clock_nanosleep (4) kernel 6 797d 917d 0/28 auto-obsoleted due to no activity on 2022/12/31 21:43
upstream INFO: rcu detected stall in sys_clock_nanosleep (3) kernel 3 1094d 1104d 0/28 closed as invalid on 2022/02/08 10:00
upstream INFO: rcu detected stall in sys_clock_nanosleep kernel 1 1349d 1349d 0/28 auto-closed as invalid on 2021/06/22 18:23
linux-6.1 INFO: rcu detected stall in sys_clock_nanosleep 1 624d 624d 0/3 auto-obsoleted due to no activity on 2023/07/17 12:13
upstream INFO: rcu detected stall in sys_clock_nanosleep (2) kernel 1 1227d 1227d 0/28 auto-closed as invalid on 2021/10/22 22:53
linux-5.15 INFO: rcu detected stall in sys_clock_nanosleep (2) 2 251d 324d 0/3 auto-obsoleted due to no activity on 2024/07/04 20:17

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
	(detected by 1, t=10502 jiffies, g=13141, q=27 ncpus=2)
rcu: All QSes seen, last rcu_preempt kthread activity 10501 (4294961147-4294950646), jiffies_till_next_fqs=1, root ->qsmask 0x0
rcu: rcu_preempt kthread starved for 10502 jiffies! g13141 f0x2 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:26712 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5245 [inline]
 __schedule+0x142d/0x4550 kernel/sched/core.c:6558
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1965
 rcu_gp_fqs_loop+0x2d2/0x1150 kernel/rcu/tree.c:1706
 rcu_gp_kthread+0xa3/0x3b0 kernel/rcu/tree.c:1905
 kthread+0x28d/0x320 kernel/kthread.c:376
 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: 4651 Comm: syz-executor.0 Not tainted 6.1.93-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:unwind_next_frame+0x23a/0x2220 arch/x86/kernel/unwind_orc.c:448
Code: 84 c0 0f 85 d0 1a 00 00 44 8b 03 41 ff c0 4b 8d 04 64 48 8d 94 00 88 7f e8 8e 48 c7 c0 46 44 86 8f 48 39 c2 0f 83 f7 18 00 00 <4b> 8d 0c 40 48 8d 8c 09 88 7f e8 8e 48 39 c1 0f 87 e2 18 00 00 45
RSP: 0018:ffffc90000007780 EFLAGS: 00000083
RAX: ffffffff8f864446 RBX: ffffffff8fac9304 RCX: 000000000009c075
RDX: ffffffff8f8294f6 RSI: ffffffff8a93ae37 RDI: dffffc0000000000
RBP: 1ffff92000000f12 R08: 000000000019ae42 R09: ffffc90000007950
R10: 0000000000000000 R11: dffffc0000000001 R12: 000000000019ae3d
R13: ffffffff8a93ae36 R14: 00000000000993ae R15: 000000000009c075
FS:  000055555635b480(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa921bbbf00 CR3: 0000000054a28000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 arch_stack_walk+0x10d/0x140 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:45 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:52
 __kasan_slab_alloc+0x65/0x70 mm/kasan/common.c:328
 kasan_slab_alloc include/linux/kasan.h:201 [inline]
 slab_post_alloc_hook+0x52/0x3a0 mm/slab.h:737
 slab_alloc_node mm/slub.c:3398 [inline]
 slab_alloc mm/slub.c:3406 [inline]
 __kmem_cache_alloc_lru mm/slub.c:3413 [inline]
 kmem_cache_alloc+0x10c/0x2d0 mm/slub.c:3422
 __sigqueue_alloc+0x42e/0x540 kernel/signal.c:435
 __send_signal_locked+0x22f/0xdc0 kernel/signal.c:1128
 do_send_sig_info kernel/signal.c:1300 [inline]
 group_send_sig_info+0x28a/0x300 kernel/signal.c:1448
 do_bpf_send_signal+0x81/0x150 kernel/trace/bpf_trace.c:839
 irq_work_single+0xd5/0x230 kernel/irq_work.c:211
 irq_work_run_list kernel/irq_work.c:242 [inline]
 irq_work_run+0x187/0x350 kernel/irq_work.c:251
 __sysvec_irq_work+0xbb/0x360 arch/x86/kernel/irq_work.c:22
 sysvec_irq_work+0x89/0xb0 arch/x86/kernel/irq_work.c:17
 </IRQ>
 <TASK>
 asm_sysvec_irq_work+0x16/0x20 arch/x86/include/asm/idtentry.h:679
RIP: 0010:finish_task_switch+0x1d3/0x810 kernel/sched/core.c:5124
Code: 2e 0b 00 48 83 c4 08 4c 89 f7 e8 98 30 00 00 0f 1f 44 00 00 4c 89 f7 e8 0b 32 36 09 e8 06 1e 32 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:ffffc90004ee7888 EFLAGS: 00000282
RAX: 80d4fa208f88f900 RBX: ffff888013b91df4 RCX: ffffffff91c95103
RDX: dffffc0000000000 RSI: ffffffff8aec0240 RDI: ffff888055d533b8
RBP: ffffc90004ee78d0 R08: dffffc0000000000 R09: ffffed1017307541
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888055d51dc0
R13: 1ffff110173076eb R14: ffff8880b983aa00 R15: ffff8880b983b758
 context_switch kernel/sched/core.c:5248 [inline]
 __schedule+0x1435/0x4550 kernel/sched/core.c:6558
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6870
 irqentry_exit+0x53/0x80 kernel/entry/common.c:439
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:schedule+0xae/0x180 kernel/sched/core.c:6633
Code: e8 37 6a 4e f7 49 8b 3e 48 85 ff 74 0a be 01 00 00 00 e8 c5 92 87 f9 4c 89 e3 48 c1 eb 03 eb 0a 49 f7 04 24 08 00 00 00 74 39 <bf> 01 00 00 00 e8 b8 b7 ca f6 31 ff e8 f1 b9 ff ff bf 01 00 00 00
RSP: 0018:ffffc90004ee7c18 EFLAGS: 00000202
RAX: 0000000000000001 RBX: 1ffff1100abaa3b8 RCX: ffffffff8a93a8f6
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888055d51dc0
RBP: ffffc90004ee7d30 R08: dffffc0000000000 R09: ffffed100abaa3b9
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888055d51dc0
R13: ffffc90004ee7dc0 R14: ffff888055d53038 R15: dffffc0000000000
 do_nanosleep+0x192/0x5f0 kernel/time/hrtimer.c:2045
 hrtimer_nanosleep+0x24d/0x490 kernel/time/hrtimer.c:2098
 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1308 [inline]
 __se_sys_clock_nanosleep+0x323/0x3b0 kernel/time/posix-timers.c:1285
 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:0x7fa920ea82b5
Code: 24 0c 89 3c 24 48 89 4c 24 18 e8 f6 b9 ff ff 4c 8b 54 24 18 48 8b 54 24 10 41 89 c0 8b 74 24 0c 8b 3c 24 b8 e6 00 00 00 0f 05 <44> 89 c7 48 89 04 24 e8 4f ba ff ff 48 8b 04 24 48 83 c4 28 f7 d8
RSP: 002b:00007ffc31530470 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6
RAX: ffffffffffffffda RBX: 00007fa920fb3f80 RCX: 00007fa920ea82b5
RDX: 00007ffc315304b0 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007fa920fb5980 R08: 0000000000000000 R09: 0000000000000010
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000021184
R13: 00007fa920fb412c R14: 0000000000000032 R15: 00007fa920fb5980
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/13 09:26 linux-6.1.y ae9f2a70d69e 2aa5052f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sys_clock_nanosleep
2024/06/07 08:03 linux-6.1.y 88690811da69 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sys_clock_nanosleep
2024/03/15 20:49 linux-6.1.y d7543167affd d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sys_clock_nanosleep
2024/01/10 22:06 linux-6.1.y 7c58bfa711cb 04815ef1 .config console log report info ci2-linux-6-1-kasan INFO: rcu detected stall in sys_clock_nanosleep
* Struck through repros no longer work on HEAD.