syzbot


INFO: rcu detected stall in try_check_zero (5)

Status: upstream: reported syz repro on 2025/01/02 10:34
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+e671de40c3198d01f2cb@syzkaller.appspotmail.com
First crash: 6d13h, last: 6d13h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernel?] INFO: rcu detected stall in try_check_zero (5) 0 (1) 2025/01/02 10:34
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in try_check_zero kernel 66 1702d 2144d 0/28 auto-closed as invalid on 2020/09/05 16:29
upstream INFO: rcu detected stall in try_check_zero (2) kernel 1 1571d 1571d 0/28 auto-closed as invalid on 2020/12/15 14:13
upstream INFO: rcu detected stall in try_check_zero (3) kernel 2 1087d 1090d 0/28 closed as invalid on 2022/02/08 10:10
upstream INFO: rcu detected stall in try_check_zero (4) kernel 2 580d 647d 0/28 auto-obsoleted due to no activity on 2023/09/02 21:24
linux-6.1 INFO: rcu detected stall in try_check_zero 1 50d 50d 0/3 upstream: reported on 2024/11/15 21:00

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (2 ticks this GP) idle=bef4/1/0x4000000000000000 softirq=13852/13852 fqs=0
rcu: 	(detected by 1, t=10502 jiffies, g=8201, q=617 ncpus=2)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 UID: 0 PID: 9 Comm: kworker/0:1 Not tainted 6.13.0-rc4-syzkaller-00078-g059dd502b263 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: rcu_gp process_srcu
RIP: 0010:mark_usage kernel/locking/lockdep.c:4637 [inline]
RIP: 0010:__lock_acquire+0x12c6/0x3c40 kernel/locking/lockdep.c:5180
Code: ff 65 8b 05 24 fe 8b 7e 85 c0 0f 85 d7 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 7c 24 40 48 89 fa 48 c1 ea 03 0f b6 14 02 <48> 89 f8 83 e0 07 83 c0 03 38 d0 7c 09 84 d2 74 05 e8 e4 36 86 00
RSP: 0018:ffffc90000007b38 EFLAGS: 00000803
RAX: dffffc0000000000 RBX: ffff88801c6b53fa RCX: 1ffffffff2dd8c62
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff88801c6b5344
RBP: 0000000000000049 R08: 0000000000000000 R09: fffffbfff2dca3bd
R10: ffffffff96e51def R11: 0000000000000004 R12: ffff88801c6b53d1
R13: ffff88801c6b4880 R14: 0000000000000003 R15: ffff88801c6b53d8
FS:  0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000600 CR3: 000000002d36e000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5849
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:351 [inline]
 advance_sched+0xd8/0xc60 net/sched/sch_taprio.c:924
 __run_hrtimer kernel/time/hrtimer.c:1739 [inline]
 __hrtimer_run_queues+0x20a/0xae0 kernel/time/hrtimer.c:1803
 hrtimer_interrupt+0x392/0x8e0 kernel/time/hrtimer.c:1865
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline]
 __sysvec_apic_timer_interrupt+0x10f/0x400 arch/x86/kernel/apic/apic.c:1055
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline]
 sysvec_apic_timer_interrupt+0x9f/0xc0 arch/x86/kernel/apic/apic.c:1049
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:26 [inline]
RIP: 0010:preempt_latency_start kernel/sched/core.c:5828 [inline]
RIP: 0010:preempt_count_add+0x52/0x150 kernel/sched/core.c:5854
Code: 3d 1b 6b 9b 7e 0f b6 14 11 38 d0 7c 08 84 d2 0f 85 dd 00 00 00 8b 15 9d 5a 1c 19 85 d2 75 0b 65 8b 05 fa 6a 9b 7e 3c f4 77 6b <65> 8b 05 ef 6a 9b 7e 25 ff ff ff 7f 39 c3 74 07 5b 5d c3 cc cc cc
RSP: 0018:ffffc900000e7b20 EFLAGS: 00000213
RAX: 0000000080000001 RBX: 0000000000000001 RCX: 1ffffffff3509914
RDX: 0000000000000000 RSI: ffffffff8bd1ed20 RDI: 0000000000000001
RBP: 00000051629f0d2a R08: 0000000000000001 R09: ffffed10170e8d59
R10: ffff8880b8746acf R11: 0000000000000002 R12: 0000000000000000
R13: 00000000000036b2 R14: ffffffff9a880640 R15: 000000000000104e
 delay_tsc+0x3c/0xc0 arch/x86/lib/delay.c:79
 udelay include/asm-generic/delay.h:64 [inline]
 try_check_zero+0x3c6/0x5a0 kernel/rcu/srcutree.c:1112
 srcu_advance_state kernel/rcu/srcutree.c:1742 [inline]
 process_srcu+0x575/0x1720 kernel/rcu/srcutree.c:1851
 process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3229
 process_scheduled_works kernel/workqueue.c:3310 [inline]
 worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391
 kthread+0x2c1/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10501 jiffies! g8201 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=0 timer-softirq=5774
rcu: rcu_preempt kthread starved for 10502 jiffies! g8201 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:27600 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5369 [inline]
 __schedule+0xe58/0x5ad0 kernel/sched/core.c:6756
 __schedule_loop kernel/sched/core.c:6833 [inline]
 schedule+0xe7/0x350 kernel/sched/core.c:6848
 schedule_timeout+0x124/0x280 kernel/time/sleep_timeout.c:99
 rcu_gp_fqs_loop+0x1eb/0xb00 kernel/rcu/tree.c:2045
 rcu_gp_kthread+0x271/0x380 kernel/rcu/tree.c:2247
 kthread+0x2c1/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/29 10:31 upstream 059dd502b263 d3ccff63 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in try_check_zero
* Struck through repros no longer work on HEAD.