syzbot


INFO: rcu detected stall in batadv_bla_periodic_work

Status: auto-obsoleted due to no activity on 2024/02/09 07:47
Subsystems: net
[Documentation on labels]
First crash: 314d, last: 314d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in batadv_bla_periodic_work (2) batman syz error 1 7d11h 3d11h 0/28 upstream: reported syz repro on 2024/09/17 15:14

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (1 GPs behind) idle=9794/1/0x4000000000000000 softirq=8571/8572 fqs=8
rcu: 	(detected by 0, t=10502 jiffies, g=10801, q=670 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 39 Comm: kworker/u4:2 Not tainted 6.6.0-syzkaller-15859-g89cdf9d55601 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
Workqueue: bat_events batadv_bla_periodic_work
RIP: 0010:__raw_callee_save___pv_queued_spin_unlock+0x10/0x16
Code: 5b 41 5a 41 59 41 58 5f 5e 5a 59 c3 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3 0f 1e fa 52 b8 01 00 00 00 31 d2 f0 0f b0 17 <3c> 01 75 02 5a c3 56 0f b6 f0 e8 b1 ff ff ff 5e 5a c3 66 66 2e 0f
RSP: 0018:ffffc900001f0df8 EFLAGS: 00000046
RAX: 0000000000000001 RBX: ffff8880b992b940 RCX: ffffffff81697aa3
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8880b992b940
RBP: ffff8880b992b948 R08: 0000000000000000 R09: ffffed1017325728
R10: ffff8880b992b943 R11: 0000000000000000 R12: ffff8880b992b950
R13: 1796816b4ebc7900 R14: ffff88802a9af340 R15: ffffffff88a5b640
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31f24000 CR3: 000000000cd77000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 pv_queued_spin_unlock arch/x86/include/asm/paravirt.h:591 [inline]
 queued_spin_unlock arch/x86/include/asm/qspinlock.h:57 [inline]
 do_raw_spin_unlock+0x173/0x230 kernel/locking/spinlock_debug.c:141
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:150 [inline]
 _raw_spin_unlock_irqrestore+0x22/0x70 kernel/locking/spinlock.c:194
 __run_hrtimer kernel/time/hrtimer.c:1684 [inline]
 __hrtimer_run_queues+0x58b/0xc10 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x31b/0x800 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1065 [inline]
 __sysvec_apic_timer_interrupt+0x105/0x3f0 arch/x86/kernel/apic/apic.c:1082
 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1076
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x31/0x70 kernel/locking/spinlock.c:194
Code: f5 53 48 8b 74 24 10 48 89 fb 48 83 c7 18 e8 c6 58 e2 f6 48 89 df e8 be d7 e2 f6 f7 c5 00 02 00 00 75 1f 9c 58 f6 c4 02 75 2f <bf> 01 00 00 00 e8 05 24 d4 f6 65 8b 05 16 1a 7d 75 85 c0 74 12 5b
RSP: 0018:ffffc90000aff6a8 EFLAGS: 00000246
RAX: 0000000000000002 RBX: ffff888016279540 RCX: 1ffffffff23f07be
RDX: 0000000000000000 RSI: ffffffff8accb920 RDI: ffffffff8b2eee80
RBP: 0000000000000287 R08: 0000000000000001 R09: fffffbfff23e3fee
R10: ffffffff91f1ff77 R11: 000000000000022c R12: ffffea00007c3450
R13: ffffea00007c3400 R14: ffff888016279540 R15: ffff88801e0bd000
 spin_unlock_irqrestore include/linux/spinlock.h:406 [inline]
 get_partial_node.part.0+0x26b/0x470 mm/slub.c:2326
 get_partial_node mm/slub.c:2286 [inline]
 get_partial mm/slub.c:2404 [inline]
 ___slab_alloc+0xdc5/0x1580 mm/slub.c:3218
 __slab_alloc.constprop.0+0x56/0xa0 mm/slub.c:3322
 __slab_alloc_node mm/slub.c:3375 [inline]
 slab_alloc_node mm/slub.c:3468 [inline]
 kmem_cache_alloc_node+0x132/0x3c0 mm/slub.c:3523
 __alloc_skb+0x287/0x330 net/core/skbuff.c:641
 alloc_skb include/linux/skbuff.h:1286 [inline]
 arp_create+0x201/0xa10 net/ipv4/arp.c:560
 batadv_bla_send_claim+0x148/0xbf0 net/batman-adv/bridge_loop_avoidance.c:361
 batadv_bla_send_announce+0x12e/0x180 net/batman-adv/bridge_loop_avoidance.c:675
 batadv_bla_periodic_work+0x44c/0xa00 net/batman-adv/bridge_loop_avoidance.c:1481
 process_one_work+0x884/0x15c0 kernel/workqueue.c:2630
 process_scheduled_works kernel/workqueue.c:2703 [inline]
 worker_thread+0x8b9/0x1290 kernel/workqueue.c:2784
 kthread+0x33c/0x440 kernel/kthread.c:388
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>
rcu: rcu_preempt kthread starved for 10486 jiffies! g10801 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:28672 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5376 [inline]
 __schedule+0xee2/0x59a0 kernel/sched/core.c:6688
 __schedule_loop kernel/sched/core.c:6763 [inline]
 schedule+0xe7/0x270 kernel/sched/core.c:6778
 schedule_timeout+0x157/0x2c0 kernel/time/timer.c:2167
 rcu_gp_fqs_loop+0x1ec/0xb10 kernel/rcu/tree.c:1631
 rcu_gp_kthread+0x249/0x380 kernel/rcu/tree.c:1830
 kthread+0x33c/0x440 kernel/kthread.c:388
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 PID: 5455 Comm: syz-executor.1 Not tainted 6.6.0-syzkaller-15859-g89cdf9d55601 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
RIP: 0010:csd_lock_wait kernel/smp.c:311 [inline]
RIP: 0010:smp_call_function_many_cond+0x4d6/0x1570 kernel/smp.c:855
Code: 0b 00 85 ed 74 4d 48 b8 00 00 00 00 00 fc ff df 4d 89 fc 4c 89 fd 49 c1 ec 03 83 e5 07 49 01 c4 83 c5 03 e8 0c c5 0b 00 f3 90 <41> 0f b6 04 24 40 38 c5 7c 08 84 c0 0f 85 3c 0e 00 00 8b 43 08 31
RSP: 0018:ffffc90009f27540 EFLAGS: 00000246
RAX: 0000000000040000 RBX: ffff8880b9941a60 RCX: ffffc90005081000
RDX: 0000000000040000 RSI: ffffffff817cdb84 RDI: 0000000000000005
RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffffed101732834d
R13: 0000000000000001 R14: ffff8880b983d8c0 R15: ffff8880b9941a68
FS:  00007f7e557366c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32024000 CR3: 0000000024fc6000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 on_each_cpu_cond_mask+0x40/0x90 kernel/smp.c:1023
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:2006 [inline]
 text_poke_bp_batch+0x2ce/0x960 arch/x86/kernel/alternative.c:2216
 text_poke_bp+0xa3/0xd0 arch/x86/kernel/alternative.c:2443
 __static_call_transform.constprop.0+0x2fb/0x550 arch/x86/kernel/static_call.c:111
 arch_static_call_transform+0x5b/0xb0 arch/x86/kernel/static_call.c:163
 __static_call_update+0xee/0x650 kernel/static_call_inline.c:147
 tracepoint_update_call kernel/tracepoint.c:317 [inline]
 tracepoint_add_func+0xb46/0xe40 kernel/tracepoint.c:365
 tracepoint_probe_register_prio_may_exist+0xbd/0x100 kernel/tracepoint.c:482
 tracepoint_probe_register_may_exist include/linux/tracepoint.h:52 [inline]
 __bpf_probe_register kernel/trace/bpf_trace.c:2372 [inline]
 bpf_probe_register+0x164/0x1d0 kernel/trace/bpf_trace.c:2378
 bpf_raw_tp_link_attach+0x2e5/0x610 kernel/bpf/syscall.c:3636
 bpf_raw_tracepoint_open kernel/bpf/syscall.c:3663 [inline]
 __sys_bpf+0x31a/0x4e80 kernel/bpf/syscall.c:5425
 __do_sys_bpf kernel/bpf/syscall.c:5487 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5485 [inline]
 __x64_sys_bpf+0x78/0xc0 kernel/bpf/syscall.c:5485
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f7e54a7cae9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f7e557360c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f7e54b9bf80 RCX: 00007f7e54a7cae9
RDX: 0000000000000010 RSI: 00000000200000c0 RDI: 0000000000000011
RBP: 00007f7e54ac847a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f7e54b9bf80 R15: 00007fff62df7a78
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/11 07:38 net-next 89cdf9d55601 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: rcu detected stall in batadv_bla_periodic_work
* Struck through repros no longer work on HEAD.