syzbot


INFO: rcu detected stall in batadv_bla_periodic_work (2)

Status: upstream: reported on 2025/05/30 12:43
Reported-by: syzbot+6fae4f6fda220df20991@syzkaller.appspotmail.com
First crash: 44d, last: 17d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: rcu detected stall in batadv_bla_periodic_work 1 248d 248d 0/3 auto-obsoleted due to no activity on 2025/02/16 00:06
upstream INFO: rcu detected stall in batadv_bla_periodic_work net 1 611d 611d 0/29 auto-obsoleted due to no activity on 2024/02/09 07:47
linux-5.15 INFO: rcu detected stall in batadv_bla_periodic_work 1 264d 264d 0/3 auto-obsoleted due to no activity on 2025/01/30 13:51
upstream INFO: rcu detected stall in batadv_bla_periodic_work (2) batman syz error 1 11d 299d 0/29 upstream: reported syz repro on 2024/09/17 15:14

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P75/1:b..l
	(detected by 1, t=10502 jiffies, g=7601, q=693 ncpus=2)
task:kworker/u4:4    state:R  running task     stack:25128 pid:75    ppid:2      flags:0x00004000
Workqueue: bat_events batadv_bla_periodic_work
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5244 [inline]
 __schedule+0x10e9/0x40d0 kernel/sched/core.c:6561
 preempt_schedule_irq+0xb1/0x150 kernel/sched/core.c:6873
 irqentry_exit+0x63/0x70 kernel/entry/common.c:439
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:lock_acquire+0x8/0x490 kernel/locking/lockdep.c:5630
Code: fb ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 65 8b 05 81 85 9f 7e a9 00 ff ff 00 0f 95 c0 c3 55 48 89 e5 41 57 41 56 <41> 55 41 54 53 48 83 e4 e0 48 81 ec e0 00 00 00 4c 89 4c 24 18 4c
RSP: 0018:ffffc900015f7af8 EFLAGS: 00000246
RAX: ffffffff89d630b0 RBX: ffff8880237448e8 RCX: 0000000000000002
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8c92aaa0
RBP: ffffc900015f7b08 R08: 0000000000000000 R09: 0000000000000000
R10: fffffbfff1bfd0b6 R11: 1ffffffff1bfd0b5 R12: ffff8880579d0818
R13: 0000000000000000 R14: ffff888058fd17c0 R15: ffff888058fd17d0
 rcu_lock_acquire include/linux/rcupdate.h:350 [inline]
 rcu_read_lock include/linux/rcupdate.h:791 [inline]
 batadv_bla_periodic_work+0x351/0xb60 net/batman-adv/bridge_loop_avoidance.c:1473
 process_one_work+0x898/0x1160 kernel/workqueue.c:2292
 worker_thread+0xaa2/0x1250 kernel/workqueue.c:2439
 kthread+0x29d/0x330 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
rcu: rcu_preempt kthread starved for 9668 jiffies! g7601 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:28096 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:
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0 skipped: idling at native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
NMI backtrace for cpu 0 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
NMI backtrace for cpu 0 skipped: idling at default_idle+0xb/0x10 arch/x86/kernel/process.c:735

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/27 07:26 linux-6.1.y 58485ff1a74f 803ce19b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in batadv_bla_periodic_work
2025/05/30 12:42 linux-6.1.y da3c5173c55f 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in batadv_bla_periodic_work
* Struck through repros no longer work on HEAD.