syzbot


INFO: rcu detected stall in sys_nanosleep (9)

Status: auto-obsoleted due to no activity on 2024/06/13 13:42
Subsystems: kernel
[Documentation on labels]
First crash: 166d, last: 166d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_nanosleep (2) cgroups mm 94 1724d 1724d 0/28 closed as invalid on 2020/01/08 05:23
upstream INFO: rcu detected stall in sys_nanosleep (4) kernel 154 1724d 1724d 0/28 closed as invalid on 2020/01/09 08:13
upstream INFO: rcu detected stall in sys_nanosleep (6) kernel 2 1480d 1524d 0/28 auto-closed as invalid on 2020/12/07 19:22
upstream INFO: rcu detected stall in sys_nanosleep (8) kernel 1 519d 519d 0/28 auto-obsoleted due to no activity on 2023/07/26 06:37
upstream INFO: rcu detected stall in sys_nanosleep (7) kernel 1 1134d 1134d 0/28 auto-closed as invalid on 2021/11/18 16:55
upstream INFO: rcu detected stall in sys_nanosleep kernel 742 1759d 1761d 0/28 closed as invalid on 2019/12/04 14:14
upstream INFO: rcu detected stall in sys_nanosleep (5) kernel 2 1647d 1648d 0/28 auto-closed as invalid on 2020/06/23 18:16
linux-6.1 INFO: rcu detected stall in sys_nanosleep 1 140d 140d 0/3 auto-obsoleted due to no activity on 2024/08/18 04:21
upstream INFO: rcu detected stall in sys_nanosleep (3) cgroups mm 4 1724d 1724d 0/28 closed as invalid on 2020/01/08 05:33

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (0 ticks this GP) idle=286c/1/0x4000000000000000 softirq=12760/12760 fqs=2
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P5101/1:b..l
rcu: 	(detected by 0, t=10502 jiffies, g=15373, q=346 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 5075 Comm: syz-fuzzer Not tainted 6.9.0-rc3-next-20240412-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:get_current arch/x86/include/asm/current.h:49 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x8/0x70 kernel/kcov.c:206
Code: 8b 3d 6c da 42 0c 48 89 de 5b e9 13 f6 59 00 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 48 8b 04 24 <65> 48 8b 0c 25 40 d3 03 00 65 8b 15 c0 9b 6d 7e f7 c2 00 01 ff 00
RSP: 0018:ffffc90000a18d58 EFLAGS: 00000097
RAX: ffffffff8183c18e RBX: 0000000000000001 RCX: ffff88801c7d9e00
RDX: ffff88801c7d9e00 RSI: 0000000000000001 RDI: 0000000000000007
RBP: ffffc90000a18ea8 R08: ffffffff8183c180 R09: 1ffffffff1f57cd5
R10: dffffc0000000000 R11: fffffbfff1f57cd6 R12: 1ffff110172a593b
R13: 0000000000000001 R14: ffff8880223cb340 R15: ffff88801c7da8c8
FS:  000000c00005a090(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe0316d56c6 CR3: 000000001fbd0000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 cpu_max_bits_warn include/linux/cpumask.h:144 [inline]
 cpumask_check include/linux/cpumask.h:151 [inline]
 cpumask_test_cpu include/linux/cpumask.h:528 [inline]
 cpu_online include/linux/cpumask.h:1143 [inline]
 trace_hrtimer_expire_exit include/trace/events/timer.h:306 [inline]
 __run_hrtimer kernel/time/hrtimer.c:1695 [inline]
 __hrtimer_run_queues+0x5ee/0xd50 kernel/time/hrtimer.c:1756
 hrtimer_interrupt+0x396/0x990 kernel/time/hrtimer.c:1818
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline]
 __sysvec_apic_timer_interrupt+0x110/0x3f0 arch/x86/kernel/apic/apic.c:1049
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline]
 sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1043
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xd8/0x140 kernel/locking/spinlock.c:194
Code: 9c 8f 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 ae 28 6c f6 f6 44 24 21 02 75 52 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 <e8> 23 50 d6 f5 65 8b 05 84 47 74 74 85 c0 74 43 48 c7 04 24 0e 36
RSP: 0018:ffffc900015e7b80 EFLAGS: 00000206
RAX: 3d5d8517560db400 RBX: 1ffff920002bcf74 RCX: ffffffff9476b703
RDX: dffffc0000000000 RSI: ffffffff8bcad2a0 RDI: 0000000000000001
RBP: ffffc900015e7c10 R08: ffffffff8fabe6af R09: 1ffffffff1f57cd5
R10: dffffc0000000000 R11: fffffbfff1f57cd6 R12: dffffc0000000000
R13: 1ffff920002bcf70 R14: ffffc900015e7ba0 R15: 0000000000000246
 hrtimer_start_expires include/linux/hrtimer.h:289 [inline]
 hrtimer_sleeper_start_expires kernel/time/hrtimer.c:1954 [inline]
 do_nanosleep+0x158/0x600 kernel/time/hrtimer.c:2030
 hrtimer_nanosleep+0x227/0x470 kernel/time/hrtimer.c:2086
 __do_sys_nanosleep kernel/time/hrtimer.c:2121 [inline]
 __se_sys_nanosleep kernel/time/hrtimer.c:2107 [inline]
 __x64_sys_nanosleep+0x26e/0x2d0 kernel/time/hrtimer.c:2107
 do_syscall_x64 arch/x86/entry/common.c:74 [inline]
 do_syscall_64+0xfa/0x250 arch/x86/entry/common.c:105
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x472857
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> 83 c4 10 5d c3 cc cc cc b8 ba 00 00 00 0f 05 89 44 24 08 c3 cc
RSP: 002b:000000c00006bf18 EFLAGS: 00000202 ORIG_RAX: 0000000000000023
RAX: ffffffffffffffda RBX: 0000000000000014 RCX: 0000000000472857
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000c00006bf18
RBP: 000000c00006bf28 R08: 0000000000000000 R09: 00000000000000b1
R10: 00007ff20245f0b8 R11: 0000000000000202 R12: 000000c00006bf18
R13: 000000c00016cc00 R14: 000000c0000064e0 R15: 0000000000000002
 </TASK>
task:syz-executor.1  state:R  running task     stack:19832 pid:5101  tgid:5101  ppid:5086   flags:0x00000002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5409 [inline]
 __schedule+0x17e8/0x4a50 kernel/sched/core.c:6746
 preempt_schedule_common+0x84/0xd0 kernel/sched/core.c:6925
 preempt_schedule+0xe1/0xf0 kernel/sched/core.c:6949
 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk.S:12
 __raw_spin_unlock include/linux/spinlock_api_smp.h:143 [inline]
 _raw_spin_unlock+0x3e/0x50 kernel/locking/spinlock.c:186
 spin_unlock include/linux/spinlock.h:391 [inline]
 copy_pte_range mm/memory.c:1177 [inline]
 copy_pmd_range+0x7aa1/0x84c0 mm/memory.c:1238
 copy_pud_range mm/memory.c:1275 [inline]
 copy_p4d_range mm/memory.c:1299 [inline]
 copy_page_range+0x99f/0xe90 mm/memory.c:1397
 dup_mmap kernel/fork.c:751 [inline]
 dup_mm kernel/fork.c:1688 [inline]
 copy_mm+0x1242/0x1fb0 kernel/fork.c:1737
 copy_process+0x187a/0x3dc0 kernel/fork.c:2390
 kernel_clone+0x226/0x8f0 kernel/fork.c:2797
 __do_sys_clone kernel/fork.c:2940 [inline]
 __se_sys_clone kernel/fork.c:2924 [inline]
 __x64_sys_clone+0x258/0x2a0 kernel/fork.c:2924
 do_syscall_x64 arch/x86/entry/common.c:74 [inline]
 do_syscall_64+0xfa/0x250 arch/x86/entry/common.c:105
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe030a7ae93
RSP: 002b:00007fff99b35898 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fe030a7ae93
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
R10: 00005555643d9750 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000
 </TASK>
rcu: rcu_preempt kthread starved for 10498 jiffies! g15373 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:25680 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5409 [inline]
 __schedule+0x17e8/0x4a50 kernel/sched/core.c:6746
 __schedule_loop kernel/sched/core.c:6823 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6838
 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2582
 rcu_gp_fqs_loop+0x2df/0x1370 kernel/rcu/tree.c:2030
 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2232
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 PID: 146 Comm: kworker/u8:5 Not tainted 6.9.0-rc3-next-20240412-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:csd_lock_wait kernel/smp.c:311 [inline]
RIP: 0010:smp_call_function_many_cond+0x1899/0x2a00 kernel/smp.c:855
Code: 89 e6 83 e6 01 31 ff e8 65 da 0b 00 41 83 e4 01 49 bc 00 00 00 00 00 fc ff df 75 07 e8 10 d6 0b 00 eb 38 f3 90 42 0f b6 04 23 <84> c0 75 11 41 f7 45 00 01 00 00 00 74 1e e8 f4 d5 0b 00 eb e4 44
RSP: 0018:ffffc90002e3f6e0 EFLAGS: 00000293
RAX: 0000000000000000 RBX: 1ffff110172a8869 RCX: ffff88801bbf9e00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90002e3f8e0 R08: ffffffff818a614b R09: 1ffffffff25ee6b4
R10: dffffc0000000000 R11: fffffbfff25ee6b5 R12: dffffc0000000000
R13: ffff8880b9544348 R14: ffff8880b943f740 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1c02c07000 CR3: 000000000e132000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:1023
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:2069 [inline]
 text_poke_bp_batch+0x352/0xb30 arch/x86/kernel/alternative.c:2279
 text_poke_flush arch/x86/kernel/alternative.c:2470 [inline]
 text_poke_finish+0x30/0x50 arch/x86/kernel/alternative.c:2477
 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146
 static_key_enable_cpuslocked+0x136/0x260 kernel/jump_label.c:205
 static_key_enable+0x1a/0x20 kernel/jump_label.c:218
 toggle_allocation_gate+0xb5/0x250 mm/kfence/core.c:826
 process_one_work kernel/workqueue.c:3218 [inline]
 process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3299
 worker_thread+0x86d/0xd70 kernel/workqueue.c:3380
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/14 13:41 linux-next 9ed46da14b9b c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sys_nanosleep
* Struck through repros no longer work on HEAD.