syzbot


INFO: rcu detected stall in sys_clock_adjtime

Status: upstream: reported on 2025/11/07 01:05
Reported-by: syzbot+b935552541fffb9f881c@syzkaller.appspotmail.com
First crash: 45d, last: 33d
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: rcu detected stall in sys_clock_adjtime 1 28 552d 1004d 0/3 auto-obsoleted due to no activity on 2024/09/25 13:11
linux-6.1 INFO: rcu detected stall in sys_clock_adjtime (3) origin:upstream 1 syz 1 68d 68d 0/3 upstream: reported syz repro on 2025/10/14 11:53
upstream INFO: rcu detected stall in sys_clock_adjtime fs 1 C done inconclusive 147 20d 1993d 0/29 upstream: reported C repro on 2020/07/07 15:13
linux-5.15 INFO: rcu detected stall in sys_clock_adjtime origin:upstream 1 C 52 8d09h 990d 0/3 upstream: reported C repro on 2023/04/06 18:02
linux-6.1 INFO: rcu detected stall in sys_clock_adjtime (2) 1 3 370d 377d 0/3 auto-obsoleted due to no activity on 2025/03/26 12:12

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (1 GPs behind) idle=b27c/1/0x4000000000000000 softirq=155611/155613 fqs=812
rcu: 	(detected by 0, t=10502 jiffies, g=196681, q=3057 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 4115 Comm: syz.8.11568 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:separate_irq_context kernel/locking/lockdep.c:-1 [inline]
RIP: 0010:__lock_acquire+0xeae/0x7c80 kernel/locking/lockdep.c:5121
Code: c6 f8 48 89 d8 48 c1 e8 03 42 0f b6 04 00 84 c0 0f 85 51 5d 00 00 8b 1b 48 8b 44 24 48 42 0f b6 04 00 84 c0 0f 85 64 5d 00 00 <48> 8b 44 24 10 33 18 f7 c3 00 60 00 00 74 11 49 c7 c7 ff ff ff ff
RSP: 0018:ffffc900001f0860 EFLAGS: 00000046
RAX: 0000000000000000 RBX: 00000000000c4067 RCX: ffffffff81670b80
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff90da8500
RBP: ffffc900001f0aa8 R08: dffffc0000000000 R09: 1ffffffff21b50a0
R10: dffffc0000000000 R11: fffffbfff21b50a1 R12: 0000000000000002
R13: ffff888050bb5a00 R14: ffff888050bb64e0 R15: d6bf87c490213bdc
FS:  00007f2666b626c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c415985 CR3: 0000000026033000 CR4: 00000000003506e0
Call Trace:
 <IRQ>
 lock_acquire+0x197/0x410 kernel/locking/lockdep.c:5754
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0xa8/0xf0 kernel/locking/spinlock.c:162
 debug_object_activate+0x6c/0x4b0 lib/debugobjects.c:709
 debug_hrtimer_activate kernel/time/hrtimer.c:450 [inline]
 debug_activate kernel/time/hrtimer.c:505 [inline]
 enqueue_hrtimer+0x30/0x370 kernel/time/hrtimer.c:1108
 __run_hrtimer kernel/time/hrtimer.c:1767 [inline]
 __hrtimer_run_queues+0x637/0xc40 kernel/time/hrtimer.c:1814
 hrtimer_interrupt+0x3c9/0x9c0 kernel/time/hrtimer.c:1876
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1077 [inline]
 __sysvec_apic_timer_interrupt+0xfb/0x3b0 arch/x86/kernel/apic/apic.c:1094
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline]
 sysvec_apic_timer_interrupt+0x9f/0xc0 arch/x86/kernel/apic/apic.c:1088
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xa9/0x110 kernel/locking/spinlock.c:194
Code: 74 05 e8 ea 7c 13 f7 48 c7 44 24 20 00 00 00 00 9c 8f 44 24 20 f6 44 24 21 02 75 4b f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 <e8> f2 f8 e2 f6 65 8b 05 e3 41 8b 75 85 c0 74 3c 48 c7 04 24 0e 36
RSP: 0018:ffffc900034e78a0 EFLAGS: 00000206
RAX: 3108b762f7cada00 RBX: 0000000000000a06 RCX: 3108b762f7cada00
RDX: dffffc0000000000 RSI: ffffffff8aaabce0 RDI: 0000000000000001
RBP: ffffc900034e7938 R08: ffffffff8e4a8d6f R09: 1ffffffff1c951ad
R10: dffffc0000000000 R11: fffffbfff1c951ae R12: dffffc0000000000
R13: 1dcd653b9ad4294e R14: ffff888030374c88 R15: 1ffff9200069cf14
 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline]
 timerfd_clock_was_set+0x1ce/0x2c0 fs/timerfd.c:113
 clock_was_set+0x74e/0x7d0 kernel/time/hrtimer.c:1003
 timekeeping_inject_offset+0x57c/0x620 kernel/time/timekeeping.c:1395
 do_adjtimex+0x435/0x9c0 kernel/time/timekeeping.c:2444
 do_clock_adjtime kernel/time/posix-timers.c:1160 [inline]
 __do_sys_clock_adjtime kernel/time/posix-timers.c:1172 [inline]
 __se_sys_clock_adjtime kernel/time/posix-timers.c:1163 [inline]
 __x64_sys_clock_adjtime+0x1f4/0x2a0 kernel/time/posix-timers.c:1163
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f2665d8f6c9
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:00007f2666b62038 EFLAGS: 00000246 ORIG_RAX: 0000000000000131
RAX: ffffffffffffffda RBX: 00007f2665fe6090 RCX: 00007f2665d8f6c9
RDX: 0000000000000000 RSI: 0000200000000280 RDI: 0000000000000000
RBP: 00007f2665e11f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f2665fe6128 R14: 00007f2665fe6090 R15: 00007ffcedee7288
 </TASK>
rcu: rcu_preempt kthread starved for 8760 jiffies! g196681 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:27560 pid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5380 [inline]
 __schedule+0x14d2/0x44d0 kernel/sched/core.c:6699
 schedule+0xbd/0x170 kernel/sched/core.c:6773
 schedule_timeout+0x160/0x280 kernel/time/timer.c:2167
 rcu_gp_fqs_loop+0x302/0x1560 kernel/rcu/tree.c:1667
 rcu_gp_kthread+0x99/0x380 kernel/rcu/tree.c:1866
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 PID: 30103 Comm: kworker/0:2 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Workqueue: events perf_sched_delayed
RIP: 0010:csd_lock_wait kernel/smp.c:311 [inline]
RIP: 0010:smp_call_function_many_cond+0xddf/0x1130 kernel/smp.c:855
Code: 45 8b 2c 24 44 89 ee 83 e6 01 31 ff e8 da d6 0a 00 41 83 e5 01 49 bd 00 00 00 00 00 fc ff df 75 07 e8 15 d3 0a 00 eb 38 f3 90 <42> 0f b6 04 2b 84 c0 75 11 41 f7 04 24 01 00 00 00 74 1e e8 f9 d2
RSP: 0018:ffffc9000c91f860 EFLAGS: 00000293
RAX: ffffffff817abc97 RBX: 1ffff110171e82ad RCX: ffff8880596a3c00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc9000c91f9e0 R08: ffffffff90da8507 R09: 1ffffffff21b50a0
R10: dffffc0000000000 R11: fffffbfff21b50a1 R12: ffff8880b8f41568
R13: dffffc0000000000 R14: ffff8880b8e3d348 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff2e9117d60 CR3: 000000000cb30000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <TASK>
 on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:1022
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:2222 [inline]
 text_poke_bp_batch+0x318/0x930 arch/x86/kernel/alternative.c:2432
 text_poke_flush arch/x86/kernel/alternative.c:2623 [inline]
 text_poke_finish+0x30/0x50 arch/x86/kernel/alternative.c:2630
 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146
 static_key_disable_cpuslocked+0xc5/0x1a0 kernel/jump_label.c:237
 static_key_disable+0x1a/0x20 kernel/jump_label.c:245
 perf_sched_delayed+0x58/0x70 kernel/events/core.c:5127
 process_one_work kernel/workqueue.c:2634 [inline]
 process_scheduled_works+0xa45/0x15b0 kernel/workqueue.c:2711
 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/18 19:57 linux-6.6.y 0a805b6ea8cd ef766cd7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: rcu detected stall in sys_clock_adjtime
2025/11/07 01:05 linux-6.6.y 0a805b6ea8cd 4e1406b4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan INFO: rcu detected stall in sys_clock_adjtime
* Struck through repros no longer work on HEAD.