syzbot


INFO: rcu detected stall in process_one_work (2)

Status: upstream: reported on 2024/12/17 21:48
Reported-by: syzbot+fd33310afaedb51ff46f@syzkaller.appspotmail.com
First crash: 12d, last: 12d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: rcu detected stall in process_one_work 3 194d 297d 0/3 auto-obsoleted due to no activity on 2024/09/27 05:22
upstream INFO: rcu detected stall in process_one_work (2) kernel 1 1723d 1723d 0/28 auto-closed as invalid on 2020/07/10 22:43
upstream INFO: rcu detected stall in process_one_work (4) kernel 1 1198d 1198d 0/28 auto-closed as invalid on 2021/12/18 04:26
upstream INFO: rcu detected stall in process_one_work (8) kernel 3 376d 426d 0/28 auto-obsoleted due to no activity on 2024/03/18 23:07
upstream INFO: rcu detected stall in process_one_work kernel 8 1963d 2405d 0/28 auto-closed as invalid on 2019/11/14 14:39
upstream INFO: rcu detected stall in process_one_work (9) kernel C error 14 31d 210d 0/28 upstream: reported C repro on 2024/06/03 12:55
upstream INFO: rcu detected stall in process_one_work (5) kernel 1 843d 843d 0/28 auto-obsoleted due to no activity on 2022/12/07 18:00
linux-6.1 INFO: rcu detected stall in process_one_work origin:upstream C error 2 108d 355d 0/3 upstream: reported C repro on 2024/01/09 18:19
upstream INFO: rcu detected stall in process_one_work (3) kernel C done done 1 1545d 1587d 15/28 fixed on 2020/11/16 12:12

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (0 ticks this GP) idle=123/1/0x4000000000000000 softirq=77987/77987 fqs=0 
	(detected by 0, t=10506 jiffies, g=100597, q=152)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 4214 Comm: kworker/1:5 Not tainted 5.15.174-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024
Workqueue: rcu_gp wait_rcu_exp_gp
RIP: 0010:__run_hrtimer kernel/time/hrtimer.c:1704 [inline]
RIP: 0010:__hrtimer_run_queues+0x680/0xcf0 kernel/time/hrtimer.c:1752
Code: 8b 5c 24 10 4c 89 e7 e8 4e 00 d9 08 31 ff 44 89 ee e8 a4 fd 10 00 45 85 ed 74 47 48 8b 84 24 b0 00 00 00 42 0f b6 04 38 84 c0 <4c> 8b 6c 24 38 48 8b 54 24 28 0f 85 3e 02 00 00 0f b6 1a 89 de 83
RSP: 0018:ffffc90000dd0d60 EFLAGS: 00000046
RAX: 0000000000000000 RBX: ffff8880b8f2a448 RCX: 0000000000000001
RDX: ffff88807d14bb80 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90000dd0ea8 R08: ffffffff816f8a9c R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff8880b8f2a200
R13: 0000000000000001 R14: ffff8880613a6340 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd58657428 CR3: 0000000025a22000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 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_irqrestore include/linux/spinlock_api_smp.h:161 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xd4/0x130 kernel/locking/spinlock.c:194
Code: 9c 8f 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 b2 d2 81 f7 f6 44 24 21 02 75 4e 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 <e8> 67 ff 0e f7 65 8b 05 78 e2 b9 75 85 c0 74 3f 48 c7 04 24 0e 36
RSP: 0018:ffffc900031af960 EFLAGS: 00000206
RAX: 3045adbc047a4700 RBX: 1ffff92000635f30 RCX: ffffffff81633db8
RDX: dffffc0000000000 RSI: ffffffff8aab2b80 RDI: 0000000000000001
RBP: ffffc900031af9f0 R08: dffffc0000000000 R09: fffffbfff2131223
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff92000635f2c R14: ffffc900031af980 R15: 0000000000000246
 spin_unlock_irqrestore include/linux/spinlock.h:418 [inline]
 __wake_up_common_lock kernel/sched/wait.c:140 [inline]
 __wake_up+0x120/0x1c0 kernel/sched/wait.c:157
 rcu_exp_wait_wake kernel/rcu/tree_exp.h:608 [inline]
 rcu_exp_sel_wait_wake+0x16cf/0x1c00 kernel/rcu/tree_exp.h:624
 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>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10505 jiffies! g100597 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=1 timer-softirq=51030
rcu: rcu_preempt kthread starved for 10506 jiffies! g100597 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->cpu=1
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 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 4214 Comm: kworker/1:5 Not tainted 5.15.174-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024
Workqueue: rcu_gp wait_rcu_exp_gp
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4687 [inline]
RIP: 0010:__lock_acquire+0x56c/0x1ff0 kernel/locking/lockdep.c:4962
Code: 00 00 e8 f7 88 67 00 48 0f a3 1d 7f b8 35 0f 73 1f 48 8d 04 5b 48 c1 e0 06 48 8d 98 c0 0f 31 90 48 ba 00 00 00 00 00 fc ff df <48> 8b 0c 24 eb 34 48 c7 c0 c0 ff a8 96 48 c1 e8 03 48 ba 00 00 00
RSP: 0018:ffffc90000dd0a60 EFLAGS: 00000002
RAX: 00000000000d6440 RBX: ffffffff903e7400 RCX: ffffffff8162d879
RDX: dffffc0000000000 RSI: 0000000000000008 RDI: ffffffff90989338
RBP: 000000000000000f R08: dffffc0000000000 R09: fffffbfff2131268
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000003
R13: ffff88807d14c668 R14: 0000000000000002 R15: ffff88807d14c708
FS:  0000000000000000(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd58657428 CR3: 0000000025a22000 CR4: 00000000003506e0
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 include/linux/spinlock_api_smp.h:142 [inline]
 _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:363 [inline]
 advance_sched+0x47/0x940 net/sched/sch_taprio.c:716
 __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_irqrestore include/linux/spinlock_api_smp.h:161 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xd4/0x130 kernel/locking/spinlock.c:194
Code: 9c 8f 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 b2 d2 81 f7 f6 44 24 21 02 75 4e 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 <e8> 67 ff 0e f7 65 8b 05 78 e2 b9 75 85 c0 74 3f 48 c7 04 24 0e 36
RSP: 0018:ffffc900031af960 EFLAGS: 00000206
RAX: 3045adbc047a4700 RBX: 1ffff92000635f30 RCX: ffffffff81633db8
RDX: dffffc0000000000 RSI: ffffffff8aab2b80 RDI: 0000000000000001
RBP: ffffc900031af9f0 R08: dffffc0000000000 R09: fffffbfff2131223
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff92000635f2c R14: ffffc900031af980 R15: 0000000000000246
 spin_unlock_irqrestore include/linux/spinlock.h:418 [inline]
 __wake_up_common_lock kernel/sched/wait.c:140 [inline]
 __wake_up+0x120/0x1c0 kernel/sched/wait.c:157
 rcu_exp_wait_wake kernel/rcu/tree_exp.h:608 [inline]
 rcu_exp_sel_wait_wake+0x16cf/0x1c00 kernel/rcu/tree_exp.h:624
 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 (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/17 21:47 linux-5.15.y 963e654022cc a0626d3a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in process_one_work
* Struck through repros no longer work on HEAD.