syzbot


INFO: rcu detected stall in loop_process_work

Status: auto-obsoleted due to no activity on 2023/09/18 06:20
Subsystems: block
[Documentation on labels]
First crash: 454d, last: 454d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: rcu detected stall in loop_process_work 1 65d 65d 0/3 upstream: reported on 2024/07/12 21:16

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P5180/1:b..l
rcu: 	(detected by 0, t=10505 jiffies, g=29353, q=27 ncpus=2)
task:kworker/u4:9    state:R  running task     stack:27096 pid:5180  ppid:2      flags:0x00004000
Workqueue: bat_events batadv_nc_worker
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5343 [inline]
 __schedule+0xc9a/0x5880 kernel/sched/core.c:6669
 preempt_schedule_irq+0x52/0x90 kernel/sched/core.c:6981
 irqentry_exit+0x35/0x80 kernel/entry/common.c:433
 asm_sysvec_reschedule_ipi+0x1a/0x20 arch/x86/include/asm/idtentry.h:650
RIP: 0010:lock_acquire+0x1f5/0x520 kernel/locking/lockdep.c:5673
Code: 76 9d 7e 83 f8 01 0f 85 b9 02 00 00 9c 58 f6 c4 02 0f 85 a4 02 00 00 48 83 7c 24 08 00 74 01 fb 48 b8 00 00 00 00 00 fc ff df <48> 01 c3 48 c7 03 00 00 00 00 48 c7 43 08 00 00 00 00 48 8b 84 24
RSP: 0018:ffffc900034cfba0 EFLAGS: 00000206
RAX: dffffc0000000000 RBX: 1ffff92000699f76 RCX: 6340380ca433ae7c
RDX: 1ffff11004527578 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff9151fd07
R10: fffffbfff22a3fa0 R11: 0000000000094001 R12: 0000000000000002
R13: 0000000000000000 R14: ffffffff8c796140 R15: 0000000000000000
 rcu_lock_acquire include/linux/rcupdate.h:327 [inline]
 rcu_read_lock include/linux/rcupdate.h:773 [inline]
 batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline]
 batadv_nc_worker+0x131/0xfe0 net/batman-adv/network-coding.c:719
 process_one_work+0x99a/0x15e0 kernel/workqueue.c:2405
 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552
 kthread+0x344/0x440 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10504 jiffies! g29353 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=1 timer-softirq=20000
rcu: rcu_preempt kthread starved for 10505 jiffies! g29353 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:28808 pid:15    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5343 [inline]
 __schedule+0xc9a/0x5880 kernel/sched/core.c:6669
 schedule+0xde/0x1a0 kernel/sched/core.c:6745
 schedule_timeout+0x14e/0x2b0 kernel/time/timer.c:2167
 rcu_gp_fqs_loop+0x190/0x910 kernel/rcu/tree.c:1609
 rcu_gp_kthread+0x23a/0x360 kernel/rcu/tree.c:1808
 kthread+0x344/0x440 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </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: 5201 Comm: kworker/u4:12 Not tainted 6.4.0-rc7-syzkaller-00014-g692b7dc87ca6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Workqueue: loop4 loop_workfn
RIP: 0010:rb_next+0x2c/0x150 lib/rbtree.c:496
Code: 1e fa 48 b8 00 00 00 00 00 fc ff df 48 89 fa 41 55 48 c1 ea 03 41 54 55 48 89 fd 53 48 83 ec 08 80 3c 02 00 0f 85 0c 01 00 00 <4c> 8b 65 00 4c 39 e5 0f 84 bb 00 00 00 48 8d 7d 08 48 b8 00 00 00
RSP: 0018:ffffc900003e8da8 EFLAGS: 00000046
RAX: dffffc0000000000 RBX: ffff88802a7c0340 RCX: 0000000000000000
RDX: 1ffff110054f8068 RSI: ffffffff8a01eb3c RDI: ffff88802a7c0340
RBP: ffff88802a7c0340 R08: 0000000000000006 R09: 0000000000000001
R10: ffff88802a7c0340 R11: ffffc900003e8ff8 R12: ffff8880b992b998
R13: 0000000000000000 R14: ffff8880b992b840 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2975200718 CR3: 000000001ea9a000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 rb_erase_cached include/linux/rbtree.h:124 [inline]
 timerqueue_del+0xd4/0x140 lib/timerqueue.c:57
 __remove_hrtimer+0xa1/0x2a0 kernel/time/hrtimer.c:1116
 __run_hrtimer kernel/time/hrtimer.c:1665 [inline]
 __hrtimer_run_queues+0x4e0/0xbe0 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x320/0x7b0 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
 __sysvec_apic_timer_interrupt+0x14a/0x430 arch/x86/kernel/apic/apic.c:1112
 sysvec_apic_timer_interrupt+0x92/0xc0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x29/0x50 kernel/locking/spinlock.c:202
Code: 90 f3 0f 1e fa 55 48 8b 74 24 08 48 89 fd 48 83 c7 18 e8 9a eb 51 f7 48 89 ef e8 c2 59 52 f7 e8 bd e5 76 f7 fb bf 01 00 00 00 <e8> 42 2f 44 f7 65 8b 05 83 9e f0 75 85 c0 74 02 5d c3 e8 10 6c ed
RSP: 0018:ffffc90004a8fb20 EFLAGS: 00000206
RAX: 0000000000302403 RBX: ffff88802202a360 RCX: 1ffffffff22b035e
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffff888140f690c0 R08: 0000000000000001 R09: ffffffff9151fe07
R10: 0000000000000001 R11: 0000000000000000 R12: ffff88802202a360
R13: ffff88802202a328 R14: ffff88801fcd3060 R15: dffffc0000000000
 spin_unlock_irq include/linux/spinlock.h:400 [inline]
 loop_process_work+0x447/0x20a0 drivers/block/loop.c:1921
 process_one_work+0x99a/0x15e0 kernel/workqueue.c:2405
 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552
 kthread+0x344/0x440 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/20 06:13 upstream 692b7dc87ca6 d521bc56 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in loop_process_work
* Struck through repros no longer work on HEAD.