syzbot


INFO: rcu detected stall in sys_timerfd_settime (3)

Status: upstream: reported on 2024/11/21 03:09
Reported-by: syzbot+27356eaa2905132965f6@syzkaller.appspotmail.com
First crash: 15h19m, last: 15h19m
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: rcu detected stall in sys_timerfd_settime (2) 3 107d 147d 0/3 auto-obsoleted due to no activity on 2024/11/14 05:49
upstream INFO: rcu detected stall in sys_timerfd_settime fs 3 1105d 1172d 0/28 closed as invalid on 2022/02/08 09:50
upstream INFO: rcu detected stall in sys_timerfd_settime (4) fs 1 222d 222d 0/28 auto-obsoleted due to no activity on 2024/06/12 13:14
upstream INFO: rcu detected stall in sys_timerfd_settime (2) net 1 674d 674d 0/28 auto-obsoleted due to no activity on 2023/04/25 06:19
upstream INFO: rcu detected stall in sys_timerfd_settime (3) fs 2 316d 369d 0/28 auto-obsoleted due to no activity on 2024/04/09 00:01
linux-5.15 INFO: rcu detected stall in sys_timerfd_settime 1 526d 526d 0/3 auto-obsoleted due to no activity on 2023/09/22 02:06
linux-6.1 INFO: rcu detected stall in sys_timerfd_settime 1 518d 518d 0/3 auto-obsoleted due to no activity on 2023/09/29 23:03

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (0 ticks this GP) idle=1db/1/0x4000000000000000 softirq=10771/10771 fqs=0 
	(detected by 1, t=10506 jiffies, g=12137, q=128)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 5278 Comm: syz.0.447 Not tainted 5.15.173-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
RIP: 0010:lockdep_recursion_inc kernel/locking/lockdep.c:431 [inline]
RIP: 0010:lock_release+0x181/0x9a0 kernel/locking/lockdep.c:5642
Code: 84 24 b0 00 00 00 42 80 3c 3b 00 74 08 4c 89 f7 e8 a4 67 67 00 48 8b 9c 24 b0 00 00 00 fa 48 c7 c7 80 38 8b 8a e8 5f 9f d1 08 <65> ff 05 a8 94 9f 7e 48 8d 94 24 80 00 00 00 48 c1 ea 03 42 0f b6
RSP: 0018:ffffc90000007b60 EFLAGS: 00000082
RAX: 0000000000000000 RBX: 0000000000000046 RCX: ffffffff8162e378
RDX: 0000000000000000 RSI: ffffffff8a8b3880 RDI: ffffffff8ad90540
RBP: ffffc90000007ca0 R08: dffffc0000000000 R09: fffffbfff1bd2d3e
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000000f78
R13: ffffffff8881f40b R14: ffffc90000007c10 R15: dffffc0000000000
FS:  00007faf2d7b76c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c345a85 CR3: 0000000075929000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 __raw_spin_unlock include/linux/spinlock_api_smp.h:150 [inline]
 _raw_spin_unlock+0x12/0x40 kernel/locking/spinlock.c:186
 spin_unlock include/linux/spinlock.h:403 [inline]
 advance_sched+0x68b/0x940 net/sched/sch_taprio.c:765
 __run_hrtimer kernel/time/hrtimer.c:1688 [inline]
 __hrtimer_run_queues+0x598/0xcf0 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1097 [inline]
 __sysvec_apic_timer_interrupt+0x13b/0x4b0 arch/x86/kernel/apic/apic.c:1114
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
 sysvec_apic_timer_interrupt+0x9b/0xc0 arch/x86/kernel/apic/apic.c:1108
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x25/0x40 kernel/locking/spinlock.c:202
Code: 51 67 f6 ff 90 53 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 3e db 24 f7 48 89 df e8 96 2f 26 f7 e8 51 ea 48 f7 fb bf 01 00 00 00 <e8> f6 74 19 f7 65 8b 05 17 68 c4 75 85 c0 74 02 5b c3 e8 e4 84 c2
RSP: 0018:ffffc90003357d20 EFLAGS: 00000282
RAX: dc8157a6c4f48f00 RBX: ffff88806005f488 RCX: ffffffff9686af03
RDX: dffffc0000000000 RSI: ffffffff8a8b2a80 RDI: 0000000000000001
RBP: 00000000ffffff83 R08: ffffffff8186f220 R09: ffffed100c00be92
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88806005f400
R13: 7fffffffffffffff R14: ffff88806005f480 R15: 0000000000000003
 spin_unlock_irq include/linux/spinlock.h:413 [inline]
 do_timerfd_settime+0xd1a/0x1000 fs/timerfd.c:521
 __do_sys_timerfd_settime fs/timerfd.c:567 [inline]
 __se_sys_timerfd_settime fs/timerfd.c:558 [inline]
 __x64_sys_timerfd_settime+0x16b/0x220 fs/timerfd.c:558
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7faf2f93f819
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007faf2d7b7038 EFLAGS: 00000246 ORIG_RAX: 000000000000011e
RAX: ffffffffffffffda RBX: 00007faf2faf6fa0 RCX: 00007faf2f93f819
RDX: 0000000020000000 RSI: 0000000000000003 RDI: 0000000000000003
RBP: 00007faf2f9b275e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007faf2faf6fa0 R15: 00007ffc7a191408
 </TASK>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10505 jiffies! g12137 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=0 timer-softirq=4378
rcu: rcu_preempt kthread starved for 10506 jiffies! g12137 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:26144 pid:   15 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5027 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6373
 schedule+0x11b/0x1f0 kernel/sched/core.c:6456
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1914
 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:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </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: 5278 Comm: syz.0.447 Not tainted 5.15.173-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
RIP: 0010:hlock_class kernel/locking/lockdep.c:192 [inline]
RIP: 0010:__lock_acquire+0x11e1/0x1ff0 kernel/locking/lockdep.c:5009
Code: 3c 38 00 74 12 48 89 df e8 3c 77 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 ff 1f 00 00 89 d8 c1 e8 06
RSP: 0018:ffffc900000079e0 EFLAGS: 00000086
RAX: 0000000000000000 RBX: ffffffff900f08c0 RCX: ffffffff8162d28f
RDX: 0000000000000000 RSI: 0000000000000008 RDI: dffffc0000000000
RBP: f273e68c3196d937 R08: dffffc0000000000 R09: fffffbfff20ec822
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001
R13: ffff888024524668 R14: ffff888024523b80 R15: ffff8880245246b8
FS:  00007faf2d7b76c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c345a85 CR3: 0000000075929000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162
 debug_object_activate+0x63/0x4e0 lib/debugobjects.c:694
 debug_hrtimer_activate kernel/time/hrtimer.c:420 [inline]
 debug_activate kernel/time/hrtimer.c:475 [inline]
 enqueue_hrtimer+0x30/0x390 kernel/time/hrtimer.c:1084
 __run_hrtimer kernel/time/hrtimer.c:1705 [inline]
 __hrtimer_run_queues+0x6b6/0xcf0 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1097 [inline]
 __sysvec_apic_timer_interrupt+0x13b/0x4b0 arch/x86/kernel/apic/apic.c:1114
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
 sysvec_apic_timer_interrupt+0x9b/0xc0 arch/x86/kernel/apic/apic.c:1108
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x25/0x40 kernel/locking/spinlock.c:202
Code: 51 67 f6 ff 90 53 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 3e db 24 f7 48 89 df e8 96 2f 26 f7 e8 51 ea 48 f7 fb bf 01 00 00 00 <e8> f6 74 19 f7 65 8b 05 17 68 c4 75 85 c0 74 02 5b c3 e8 e4 84 c2
RSP: 0018:ffffc90003357d20 EFLAGS: 00000282
RAX: dc8157a6c4f48f00 RBX: ffff88806005f488 RCX: ffffffff9686af03
RDX: dffffc0000000000 RSI: ffffffff8a8b2a80 RDI: 0000000000000001
RBP: 00000000ffffff83 R08: ffffffff8186f220 R09: ffffed100c00be92
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88806005f400
R13: 7fffffffffffffff R14: ffff88806005f480 R15: 0000000000000003
 spin_unlock_irq include/linux/spinlock.h:413 [inline]
 do_timerfd_settime+0xd1a/0x1000 fs/timerfd.c:521
 __do_sys_timerfd_settime fs/timerfd.c:567 [inline]
 __se_sys_timerfd_settime fs/timerfd.c:558 [inline]
 __x64_sys_timerfd_settime+0x16b/0x220 fs/timerfd.c:558
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7faf2f93f819
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007faf2d7b7038 EFLAGS: 00000246 ORIG_RAX: 000000000000011e
RAX: ffffffffffffffda RBX: 00007faf2faf6fa0 RCX: 00007faf2f93f819
RDX: 0000000020000000 RSI: 0000000000000003 RDI: 0000000000000003
RBP: 00007faf2f9b275e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007faf2faf6fa0 R15: 00007ffc7a191408
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/21 03:08 linux-5.15.y 0a51d2d4527b 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_timerfd_settime
* Struck through repros no longer work on HEAD.