syzbot


INFO: rcu detected stall in sys_clock_nanosleep (2)

Status: auto-obsoleted due to no activity on 2024/07/04 20:17
Reported-by: syzbot+0be56d4989ccfa20de51@syzkaller.appspotmail.com
First crash: 312d, last: 239d
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 436d 436d 0/3 auto-obsoleted due to no activity on 2023/12/20 18:13
linux-6.1 INFO: rcu detected stall in sys_clock_nanosleep (2) 4 161d 315d 0/3 auto-obsoleted due to no activity on 2024/09/21 09:26
upstream INFO: rcu detected stall in sys_clock_nanosleep (5) kernel C error done 75 17d 462d 0/28 upstream: reported C repro on 2023/08/17 09:25
upstream INFO: rcu detected stall in sys_clock_nanosleep (4) kernel 6 785d 905d 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 1082d 1092d 0/28 closed as invalid on 2022/02/08 10:00
upstream INFO: rcu detected stall in sys_clock_nanosleep kernel 1 1337d 1337d 0/28 auto-closed as invalid on 2021/06/22 18:23
linux-6.1 INFO: rcu detected stall in sys_clock_nanosleep 1 612d 612d 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 1215d 1215d 0/28 auto-closed as invalid on 2021/10/22 22:53

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (0 ticks this GP) idle=e45/1/0x4000000000000000 softirq=38631/38631 fqs=0 
	(detected by 0, t=10505 jiffies, g=53193, q=171)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 8348 Comm: syz-executor.2 Not tainted 5.15.152-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:35 [inline]
RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline]
RIP: 0010:arch_local_irq_save arch/x86/include/asm/irqflags.h:106 [inline]
RIP: 0010:lock_is_held_type+0x65/0x180 kernel/locking/lockdep.c:5662
Code: 00 00 65 4c 8b 2d 2b a4 e6 75 41 83 bd ec 0a 00 00 00 0f 85 db 00 00 00 41 89 f6 49 89 ff 48 c7 04 24 00 00 00 00 9c 8f 04 24 <4c> 8b 24 24 fa 48 c7 c7 00 23 8b 8a e8 1a 12 00 00 65 ff 05 33 ad
RSP: 0018:ffffc90000dd0c78 EFLAGS: 00000046
RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffff888057043b80
RDX: ffff888057043b80 RSI: 00000000ffffffff RDI: ffff88807a58d300
RBP: 00000000ffffffff R08: ffffffff886a63bb R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff88807a58d000
R13: ffff888057043b80 R14: 00000000ffffffff R15: ffff88807a58d300
FS:  0000555555ff2480(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa259979000 CR3: 000000007b666000 CR4: 00000000003506e0
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 lock_is_held include/linux/lockdep.h:287 [inline]
 advance_sched+0x13d/0x940 net/sched/sch_taprio.c:721
 __run_hrtimer kernel/time/hrtimer.c:1686 [inline]
 __hrtimer_run_queues+0x598/0xcf0 kernel/time/hrtimer.c:1750
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1085 [inline]
 __sysvec_apic_timer_interrupt+0x139/0x470 arch/x86/kernel/apic/apic.c:1102
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1096
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xd4/0x130 kernel/locking/spinlock.c:194
Code: 9c 8f 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 42 b0 a4 f7 f6 44 24 21 02 75 4e 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 <e8> b7 fb 31 f7 65 8b 05 a8 29 dd 75 85 c0 74 3f 48 c7 04 24 0e 36
RSP: 0018:ffffc900031e7ba0 EFLAGS: 00000206
RAX: 40eb9505dd9a6300 RBX: 1ffff9200063cf78 RCX: ffffffff913c6f03
RDX: dffffc0000000000 RSI: ffffffff8a8b1500 RDI: 0000000000000001
RBP: ffffc900031e7c30 R08: ffffffff8186b7e0 R09: ffffed1017365441
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff9200063cf74 R14: ffffc900031e7bc0 R15: 0000000000000246
 hrtimer_start_expires include/linux/hrtimer.h:434 [inline]
 hrtimer_sleeper_start_expires kernel/time/hrtimer.c:1966 [inline]
 do_nanosleep+0x164/0x7b0 kernel/time/hrtimer.c:2042
 hrtimer_nanosleep+0x24d/0x490 kernel/time/hrtimer.c:2098
 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1313 [inline]
 __se_sys_clock_nanosleep+0x323/0x3b0 kernel/time/posix-timers.c:1290
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f0743ccf1b5
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:00007ffc546cd560 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6
RAX: ffffffffffffffda RBX: 000000000000026d RCX: 00007f0743ccf1b5
RDX: 00007ffc546cd5a0 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007ffc546cd62c R08: 0000000000000000 R09: 0000000000000010
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000032
R13: 000000000004bb7b R14: 000000000004bb7b R15: 0000000000000000
 </TASK>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10504 jiffies! g53193 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=1 timer-softirq=25990
rcu: rcu_preempt kthread starved for 10505 jiffies! g53193 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:27000 pid:   15 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5030 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376
 schedule+0x11b/0x1f0 kernel/sched/core.c:6459
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1884
 rcu_gp_fqs_loop+0x2bf/0x1080 kernel/rcu/tree.c:1972
 rcu_gp_kthread+0xa4/0x360 kernel/rcu/tree.c:2145
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </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: 8348 Comm: syz-executor.2 Not tainted 5.15.152-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
RIP: 0010:__lock_acquire+0x11d8/0x1ff0
Code: 40 48 89 d8 48 c1 e8 03 80 3c 38 00 74 12 48 89 df e8 bc 52 67 00 48 bf 00 00 00 00 00 fc ff df 48 83 3b 00 0f 84 ac 04 00 00 <48> 8b 44 24 38 0f b6 04 38 84 c0 0f 85 2b 0a 00 00 41 8b 1f 81 e3
RSP: 0018:ffffc90000dd0a60 EFLAGS: 00000046
RAX: 0000000000000000 RBX: 0000000050ef4013 RCX: 000000001055937d
RDX: 00000000c3affd79 RSI: 00000000ca838a38 RDI: dffffc0000000000
RBP: 9be2421a50ef4013 R08: dffffc0000000000 R09: fffffbfff1f79e19
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffff888057044668 R14: ffff888057043b80 R15: ffff888057044690
FS:  0000555555ff2480(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa259979000 CR3: 000000007b666000 CR4: 00000000003506e0
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:269
 rcu_read_lock include/linux/rcupdate.h:696 [inline]
 advance_sched+0x6ce/0x940 net/sched/sch_taprio.c:769
 __run_hrtimer kernel/time/hrtimer.c:1686 [inline]
 __hrtimer_run_queues+0x598/0xcf0 kernel/time/hrtimer.c:1750
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1085 [inline]
 __sysvec_apic_timer_interrupt+0x139/0x470 arch/x86/kernel/apic/apic.c:1102
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1096
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xd4/0x130 kernel/locking/spinlock.c:194
Code: 9c 8f 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 42 b0 a4 f7 f6 44 24 21 02 75 4e 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 <e8> b7 fb 31 f7 65 8b 05 a8 29 dd 75 85 c0 74 3f 48 c7 04 24 0e 36
RSP: 0018:ffffc900031e7ba0 EFLAGS: 00000206
RAX: 40eb9505dd9a6300 RBX: 1ffff9200063cf78 RCX: ffffffff913c6f03
RDX: dffffc0000000000 RSI: ffffffff8a8b1500 RDI: 0000000000000001
RBP: ffffc900031e7c30 R08: ffffffff8186b7e0 R09: ffffed1017365441
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff9200063cf74 R14: ffffc900031e7bc0 R15: 0000000000000246
 hrtimer_start_expires include/linux/hrtimer.h:434 [inline]
 hrtimer_sleeper_start_expires kernel/time/hrtimer.c:1966 [inline]
 do_nanosleep+0x164/0x7b0 kernel/time/hrtimer.c:2042
 hrtimer_nanosleep+0x24d/0x490 kernel/time/hrtimer.c:2098
 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1313 [inline]
 __se_sys_clock_nanosleep+0x323/0x3b0 kernel/time/posix-timers.c:1290
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f0743ccf1b5
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:00007ffc546cd560 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6
RAX: ffffffffffffffda RBX: 000000000000026d RCX: 00007f0743ccf1b5
RDX: 00007ffc546cd5a0 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007ffc546cd62c R08: 0000000000000000 R09: 0000000000000010
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000032
R13: 000000000004bb7b R14: 000000000004bb7b R15: 0000000000000000
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/26 20:16 linux-5.15.y b95c01af2113 454571b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_clock_nanosleep
2024/01/13 21:31 linux-5.15.y 26c690eff0a5 551587c1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in sys_clock_nanosleep
* Struck through repros no longer work on HEAD.