syzbot


INFO: rcu detected stall in sys_timerfd_settime (3)

Status: upstream: reported on 2025/04/16 01:08
Reported-by: syzbot+c67f6a9bb931ba170dea@syzkaller.appspotmail.com
First crash: 71d, last: 8d21h
Similar bugs (11)
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 324d 364d 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 1322d 1389d 0/29 closed as invalid on 2022/02/08 09:50
upstream INFO: rcu detected stall in sys_timerfd_settime (4) fs 1 439d 439d 0/29 auto-obsoleted due to no activity on 2024/06/12 13:14
upstream INFO: rcu detected stall in sys_timerfd_settime (2) net 1 891d 891d 0/29 auto-obsoleted due to no activity on 2023/04/25 06:19
linux-5.15 INFO: rcu detected stall in sys_timerfd_settime (4) 2 14d 20d 0/3 upstream: reported on 2025/06/06 11:45
upstream INFO: rcu detected stall in sys_timerfd_settime (3) fs 2 533d 586d 0/29 auto-obsoleted due to no activity on 2024/04/09 00:01
upstream INFO: rcu detected stall in sys_timerfd_settime (5) fs 17 138d 343d 0/29 auto-obsoleted due to no activity on 2025/05/09 08:53
linux-5.15 INFO: rcu detected stall in sys_timerfd_settime 1 743d 743d 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 735d 735d 0/3 auto-obsoleted due to no activity on 2023/09/29 23:03
linux-5.15 INFO: rcu detected stall in sys_timerfd_settime (3) 1 217d 217d 0/3 auto-obsoleted due to no activity on 2025/03/01 03:09
linux-6.1 INFO: rcu detected stall in sys_timerfd_settime (2) 1 189d 189d 0/3 auto-obsoleted due to no activity on 2025/03/29 01:59

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (0 ticks this GP) idle=ed04/1/0x4000000000000000 softirq=19074/19074 fqs=8
	(detected by 0, t=10502 jiffies, g=26425, q=28 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 6824 Comm: syz.2.906 Not tainted 6.1.141-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:check_region_inline mm/kasan/generic.c:172 [inline]
RIP: 0010:kasan_check_range+0x1f/0x290 mm/kasan/generic.c:189
Code: 00 cc cc 00 00 cc cc 00 00 cc cc b0 01 48 85 f6 0f 84 a4 01 00 00 41 57 41 56 53 49 89 f8 49 01 f0 0f 82 57 02 00 00 49 89 f8 <49> c1 e8 2f 41 81 f8 ff ff 01 00 0f 82 43 02 00 00 49 bf 01 00 00
RSP: 0018:ffffc900001e0840 EFLAGS: 00000086
RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff81630285
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff908b8240
RBP: ffffc900001e0ab0 R08: ffffffff908b8240 R09: fffffbfff211704a
R10: fffffbfff211704a R11: 1ffffffff2117049 R12: 00000000f273e68c
R13: 00000000d4516eaf R14: 000000003196d937 R15: ffff888063f2a890
FS:  00007fd29453d6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c264b73 CR3: 0000000074184000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 instrument_atomic_read include/linux/instrumented.h:72 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
 hlock_class kernel/locking/lockdep.c:228 [inline]
 __lock_acquire+0x12e5/0x7c50 kernel/locking/lockdep.c:5046
 lock_acquire+0x1b4/0x490 kernel/locking/lockdep.c:5662
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0xa4/0xf0 kernel/locking/spinlock.c:162
 debug_object_activate+0x6a/0x490 lib/debugobjects.c:698
 debug_hrtimer_activate kernel/time/hrtimer.c:448 [inline]
 debug_activate kernel/time/hrtimer.c:503 [inline]
 enqueue_hrtimer+0x30/0x3f0 kernel/time/hrtimer.c:1110
 __run_hrtimer kernel/time/hrtimer.c:1769 [inline]
 __hrtimer_run_queues+0x68e/0xd60 kernel/time/hrtimer.c:1816
 hrtimer_interrupt+0x3c5/0x9c0 kernel/time/hrtimer.c:1878
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1107 [inline]
 __sysvec_apic_timer_interrupt+0x153/0x5a0 arch/x86/kernel/apic/apic.c:1124
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
 sysvec_apic_timer_interrupt+0x9b/0xc0 arch/x86/kernel/apic/apic.c:1118
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x25/0x40 kernel/locking/spinlock.c:202
Code: f5 ff 0f 1f 00 53 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 de d0 49 f7 48 89 df e8 36 96 4a f7 e8 31 97 6d f7 fb bf 01 00 00 00 <e8> 46 13 3e f7 65 8b 05 17 d4 e8 75 85 c0 74 02 5b c3 e8 64 e5 e6
RSP: 0018:ffffc9000378fd20 EFLAGS: 00000282
RAX: 5e2ea38b3dc63000 RBX: ffff888020b1b888 RCX: 5e2ea38b3dc63000
RDX: dffffc0000000000 RSI: ffffffff8a6bffe0 RDI: 0000000000000001
RBP: 7fffffffffffffff R08: dffffc0000000000 R09: ffffed1004163712
R10: ffffed1004163712 R11: 1ffff11004163711 R12: 1ffff11004163710
R13: ffff888020b1b800 R14: ffff88807a1f0c81 R15: 7fffffffffffffff
 spin_unlock_irq include/linux/spinlock.h:401 [inline]
 do_timerfd_settime+0xe3a/0x1080 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+0x15e/0x210 fs/timerfd.c:558
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fd29378e929
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:00007fd29453d038 EFLAGS: 00000246 ORIG_RAX: 000000000000011e
RAX: ffffffffffffffda RBX: 00007fd2939b5fa0 RCX: 00007fd29378e929
RDX: 0000200000000140 RSI: 0000000000000003 RDI: 0000000000000003
RBP: 00007fd293810b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fd2939b5fa0 R15: 00007ffec51c3338
 </TASK>
rcu: rcu_preempt kthread starved for 10486 jiffies! g26425 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:26912 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5244 [inline]
 __schedule+0x10e9/0x40d0 kernel/sched/core.c:6561
 schedule+0xb9/0x180 kernel/sched/core.c:6637
 schedule_timeout+0x15c/0x280 kernel/time/timer.c:1965
 rcu_gp_fqs_loop+0x2f2/0x1310 kernel/rcu/tree.c:1706
 rcu_gp_kthread+0x95/0x380 kernel/rcu/tree.c:1905
 kthread+0x29d/0x330 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 PID: 6826 Comm: syz.3.909 Not tainted 6.1.141-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:csd_lock_wait kernel/smp.c:424 [inline]
RIP: 0010:smp_call_function_many_cond+0xe84/0x1270 kernel/smp.c:998
Code: e6 01 31 ff e8 6d e9 0a 00 83 e3 01 48 bb 00 00 00 00 00 fc ff df 75 07 e8 f9 e5 0a 00 eb 37 f3 90 41 0f b6 04 1c 84 c0 75 10 <41> f7 07 01 00 00 00 74 1e e8 de e5 0a 00 eb e5 44 89 f9 80 e1 07
RSP: 0018:ffffc900048f78c0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000080000
RDX: ffffc9000d2c1000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc900048f7a20 R08: dffffc0000000000 R09: fffffbfff2117076
R10: fffffbfff2117076 R11: 1ffffffff2117075 R12: 1ffff110171e81c1
R13: ffff8880b8e3bb40 R14: 0000000000000001 R15: ffff8880b8f40e08
FS:  00007f5b74ffa6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5b74171d60 CR3: 000000007e206000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1166
 kill_bdev block/bdev.c:75 [inline]
 set_blocksize+0x2cd/0x350 block/bdev.c:152
 sb_set_blocksize+0x45/0xe0 block/bdev.c:161
 isofs_fill_super+0x1581/0x25d0 fs/isofs/inode.c:862
 mount_bdev+0x287/0x3c0 fs/super.c:1443
 legacy_get_tree+0xe6/0x180 fs/fs_context.c:632
 vfs_get_tree+0x88/0x270 fs/super.c:1573
 do_new_mount+0x24a/0xa40 fs/namespace.c:3054
 do_mount fs/namespace.c:3397 [inline]
 __do_sys_mount fs/namespace.c:3605 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3582
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f5b741900ca
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007f5b74ff9e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f5b74ff9ef0 RCX: 00007f5b741900ca
RDX: 0000200000000040 RSI: 0000200000000000 RDI: 00007f5b74ff9eb0
RBP: 0000200000000040 R08: 00007f5b74ff9ef0 R09: 000000000220c413
R10: 000000000220c413 R11: 0000000000000246 R12: 0000200000000000
R13: 00007f5b74ff9eb0 R14: 0000000000000a46 R15: 0000200000000280
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/17 21:01 linux-6.1.y 58485ff1a74f e77fae15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sys_timerfd_settime
2025/04/16 01:07 linux-6.1.y 420102835862 a95239b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sys_timerfd_settime
* Struck through repros no longer work on HEAD.