syzbot


INFO: rcu detected stall in sys_timerfd_settime (2)

Status: upstream: reported on 2024/06/27 06:29
Reported-by: syzbot+2743baba4a4bdb608e81@syzkaller.appspotmail.com
First crash: 110d, last: 70d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_timerfd_settime fs 3 1068d 1135d 0/28 closed as invalid on 2022/02/08 09:50
upstream INFO: rcu detected stall in sys_timerfd_settime (4) fs 1 185d 185d 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 637d 637d 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 279d 332d 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 489d 489d 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 481d 481d 0/3 auto-obsoleted due to no activity on 2023/09/29 23:03

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	1-...!: (10500 ticks this GP) idle=9fd/1/0x4000000000000000 softirq=20102/20102 fqs=0 
	(t=10501 jiffies g=26117 q=76)
rcu: rcu_preempt kthread timer wakeup didn't happen for 10500 jiffies! g26117 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=0 timer-softirq=16290
rcu: rcu_preempt kthread starved for 10501 jiffies! g26117 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:27064 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: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: 7002 Comm: syz.4.974 Not tainted 5.15.164-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:kasan_check_range+0x3/0x290 mm/kasan/generic.c:188
Code: 48 89 c7 e8 cf 7a 69 08 31 c0 c3 0f 0b b8 ea ff ff ff c3 0f 0b b8 ea ff ff ff c3 cc cc cc cc cc cc cc cc cc cc cc cc 55 41 57 <41> 56 53 b0 01 48 85 f6 0f 84 9a 01 00 00 48 89 fd 48 01 f5 0f 82
RSP: 0018:ffffc90000007c48 EFLAGS: 00000046
RAX: 0000000000000000 RBX: dffffc0000000000 RCX: ffffffff81642694
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8880b9a2a200
RBP: ffffc90000007d50 R08: dffffc0000000000 R09: fffffbfff1bd2986
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff92000000f98 R14: ffffc90000007ce0 R15: ffff8880b9a2a200
FS:  00007eff955cc6c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b3311eff8 CR3: 000000001edca000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 instrument_atomic_read include/linux/instrumented.h:71 [inline]
 atomic_read include/linux/atomic/atomic-instrumented.h:27 [inline]
 queued_spin_is_locked include/asm-generic/qspinlock.h:28 [inline]
 debug_spin_unlock kernel/locking/spinlock_debug.c:100 [inline]
 do_raw_spin_unlock+0x54/0x8b0 kernel/locking/spinlock_debug.c:140
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:159 [inline]
 _raw_spin_unlock_irqrestore+0x7d/0x130 kernel/locking/spinlock.c:194
 __run_hrtimer kernel/time/hrtimer.c:1682 [inline]
 __hrtimer_run_queues+0x48c/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_irq include/linux/spinlock_api_smp.h:169 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x25/0x40 kernel/locking/spinlock.c:202
Code: a1 68 f6 ff 90 53 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 8e 2d 26 f7 48 89 df e8 66 81 27 f7 e8 f1 3c 4a f7 fb bf 01 00 00 00 <e8> 16 c6 1a f7 65 8b 05 d7 ca c5 75 85 c0 74 02 5b c3 e8 a4 e7 c3
RSP: 0018:ffffc900032e7d20 EFLAGS: 00000282
RAX: dee056b65d49b500 RBX: ffff888063c5e488 RCX: ffffffff91467f03
RDX: dffffc0000000000 RSI: ffffffff8a8b2a00 RDI: 0000000000000001
RBP: 00000000ffffff83 R08: ffffffff8186e200 R09: ffffed100c78bc92
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888063c5e400
R13: 7fffffffffffffff R14: ffff888063c5e480 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:0x7eff9714d9f9
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:00007eff955cc048 EFLAGS: 00000246 ORIG_RAX: 000000000000011e
RAX: ffffffffffffffda RBX: 00007eff972dbf80 RCX: 00007eff9714d9f9
RDX: 0000000020000000 RSI: 0000000000000003 RDI: 0000000000000003
RBP: 00007eff971bb8ee R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007eff972dbf80 R15: 00007ffe5945f808
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 7002 Comm: syz.4.974 Not tainted 5.15.164-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:lock_is_held_type+0x9/0x180 kernel/locking/lockdep.c:5651
Code: 8a 48 c7 c6 e0 28 8b 8a e8 44 f4 18 f7 0f 0b eb bf e8 ab fd ff ff 66 2e 0f 1f 84 00 00 00 00 00 90 55 41 57 41 56 41 55 41 54 <53> 48 83 ec 10 65 48 8b 04 25 28 00 00 00 48 89 44 24 08 bd ff ff
RSP: 0018:ffffc90000007c90 EFLAGS: 00000002
RAX: 0000000080010002 RBX: 0000000000000001 RCX: ffff888077b89dc0
RDX: ffff888077b89dc0 RSI: 00000000ffffffff RDI: ffff88807f276b00
RBP: ffff88807f276ae8 R08: ffffffff8881040e R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff88807f276800
R13: ffff88807f276b40 R14: dffffc0000000000 R15: ffff88807f276b28
FS:  00007eff955cc6c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b3311eff8 CR3: 000000001edca000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 lock_is_held include/linux/lockdep.h:287 [inline]
 advance_sched+0xd0/0x940 net/sched/sch_taprio.c:719
 __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_irq include/linux/spinlock_api_smp.h:169 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x25/0x40 kernel/locking/spinlock.c:202
Code: a1 68 f6 ff 90 53 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 8e 2d 26 f7 48 89 df e8 66 81 27 f7 e8 f1 3c 4a f7 fb bf 01 00 00 00 <e8> 16 c6 1a f7 65 8b 05 d7 ca c5 75 85 c0 74 02 5b c3 e8 a4 e7 c3
RSP: 0018:ffffc900032e7d20 EFLAGS: 00000282
RAX: dee056b65d49b500 RBX: ffff888063c5e488 RCX: ffffffff91467f03
RDX: dffffc0000000000 RSI: ffffffff8a8b2a00 RDI: 0000000000000001
RBP: 00000000ffffff83 R08: ffffffff8186e200 R09: ffffed100c78bc92
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888063c5e400
R13: 7fffffffffffffff R14: ffff888063c5e480 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:0x7eff9714d9f9
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:00007eff955cc048 EFLAGS: 00000246 ORIG_RAX: 000000000000011e
RAX: ffffffffffffffda RBX: 00007eff972dbf80 RCX: 00007eff9714d9f9
RDX: 0000000020000000 RSI: 0000000000000003 RDI: 0000000000000003
RBP: 00007eff971bb8ee R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007eff972dbf80 R15: 00007ffe5945f808
 </TASK>
NMI backtrace for cpu 1
CPU: 1 PID: 3778 Comm: kworker/u4:10 Not tainted 5.15.164-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
Workqueue: netns cleanup_net
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:166 [inline]
 rcu_dump_cpu_stacks+0x223/0x390 kernel/rcu/tree_stall.h:349
 print_cpu_stall+0x320/0x600 kernel/rcu/tree_stall.h:633
 check_cpu_stall kernel/rcu/tree_stall.h:727 [inline]
 rcu_pending kernel/rcu/tree.c:3932 [inline]
 rcu_sched_clock_irq+0x8d9/0x1150 kernel/rcu/tree.c:2619
 update_process_times+0x196/0x200 kernel/time/timer.c:1818
 tick_sched_handle kernel/time/tick-sched.c:254 [inline]
 tick_sched_timer+0x386/0x550 kernel/time/tick-sched.c:1473
 __run_hrtimer kernel/time/hrtimer.c:1686 [inline]
 __hrtimer_run_queues+0x55b/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:csd_lock_wait kernel/smp.c:440 [inline]
RIP: 0010:smp_call_function_single+0x292/0x530 kernel/smp.c:758
Code: 0f 85 24 02 00 00 44 8b 6c 24 48 44 89 ee 83 e6 01 31 ff e8 c0 e4 0b 00 41 83 e5 01 75 0a e8 55 e1 0b 00 e9 eb 00 00 00 f3 90 <42> 0f b6 04 23 84 c0 75 15 f7 44 24 48 01 00 00 00 0f 84 cd 00 00
RSP: 0018:ffffc90003fa77a0 EFLAGS: 00000293
RAX: ffffffff8174802e RBX: 1ffff920007f4efd RCX: ffff888019660000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90003fa7890 R08: ffffffff81748000 R09: ffffed1017347681
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 0000000000000001 R14: ffffc90003fa77e8 R15: 0000000000000000
 rcu_barrier+0x262/0x4e0 kernel/rcu/tree.c:4078
 netdev_run_todo+0x381/0xc40 net/core/dev.c:10622
 ip_tunnel_delete_nets+0x2f2/0x330 net/ipv4/ip_tunnel.c:1151
 ops_exit_list net/core/net_namespace.c:177 [inline]
 cleanup_net+0x763/0xb60 net/core/net_namespace.c:599
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
 kthread+0x3f6/0x4f0 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/06 05:48 linux-5.15.y 7e89efd3ae1c e1bdb00a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_timerfd_settime
2024/07/25 13:02 linux-5.15.y 7c6d66f0266f 466a14e5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_timerfd_settime
2024/06/27 06:28 linux-5.15.y 4878aadf2d15 c6d33a01 .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.