syzbot


INFO: rcu detected stall in batadv_purge_orig

Status: auto-obsoleted due to no activity on 2024/06/13 05:20
Reported-by: syzbot+eea665fc50931e17c799@syzkaller.appspotmail.com
First crash: 362d, last: 273d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in batadv_purge_orig batman 1 843d 843d 0/28 auto-obsoleted due to no activity on 2022/11/10 10:36
upstream INFO: rcu detected stall in batadv_purge_orig (2) batman 4 388d 600d 0/28 auto-obsoleted due to no activity on 2024/02/09 00:50
linux-6.1 INFO: rcu detected stall in batadv_purge_orig 1 248d 248d 0/3 auto-obsoleted due to no activity on 2024/07/07 19:31
upstream BUG: soft lockup in batadv_purge_orig batman 1 248d 248d 25/28 fixed on 2024/06/05 19:57

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (1 GPs behind) idle=df1/1/0x4000000000000000 softirq=32729/32730 fqs=0 
	(detected by 1, t=10502 jiffies, g=50029, q=60)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 11955 Comm: kworker/u4:39 Not tainted 5.15.150-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Workqueue: bat_events batadv_purge_orig
RIP: 0010:trace_lock_release include/trace/events/lock.h:58 [inline]
RIP: 0010:lock_release+0xb2/0x9a0 kernel/locking/lockdep.c:5634
Code: 83 fb 08 0f 83 d3 05 00 00 89 d8 c1 e8 06 48 8d 3c c5 28 8c e3 8d be 08 00 00 00 e8 78 45 67 00 89 d8 48 0f a3 05 06 de 80 0c <73> 0d e8 47 41 08 00 84 c0 0f 84 d8 05 00 00 48 c7 c0 c4 bf e3 8d
RSP: 0018:ffffc90000007b80 EFLAGS: 00000057
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff8162ae18
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8de38c28
RBP: ffffc90000007cb0 R08: dffffc0000000000 R09: fffffbfff1bc7186
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000000f7c
R13: ffffffff816f3dec R14: ffffc90000007ce0 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0637686988 CR3: 000000003225b000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:158 [inline]
 _raw_spin_unlock_irqrestore+0x75/0x130 kernel/locking/spinlock.c:194
 __run_hrtimer kernel/time/hrtimer.c:1682 [inline]
 __hrtimer_run_queues+0x48c/0xcf0 kernel/time/hrtimer.c:1750
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1085 [inline]
 __sysvec_apic_timer_interrupt+0x139/0x470 arch/x86/kernel/apic/apic.c:1102
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1096
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:should_resched arch/x86/include/asm/preempt.h:103 [inline]
RIP: 0010:__local_bh_enable_ip+0x16c/0x1f0 kernel/softirq.c:390
Code: 8a e8 38 4e ce 08 65 66 8b 05 10 39 b6 7e 66 85 c0 75 57 bf 01 00 00 00 e8 d1 dd 09 00 e8 ac 53 39 00 fb 65 8b 05 fc 0f b5 7e <85> c0 75 05 e8 8b 27 b3 ff 48 c7 44 24 20 0e 36 e0 45 49 c7 04 1c
RSP: 0018:ffffc90005c5fa20 EFLAGS: 00000282
RAX: 0000000080000000 RBX: 1ffff92000b8bf48 RCX: ffffffff8162f4e8
RDX: dffffc0000000000 RSI: ffffffff8a8b1500 RDI: ffffffff8ad88ec0
RBP: ffffc90005c5fad0 R08: dffffc0000000000 R09: fffffbfff1f79e36
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff92000b8bf4c R14: ffffc90005c5fa60 R15: 0000000000000201
 spin_unlock_bh include/linux/spinlock.h:408 [inline]
 batadv_purge_orig_ref+0x14b9/0x15a0 net/batman-adv/originator.c:1259
 batadv_purge_orig+0x15/0x60 net/batman-adv/originator.c:1272
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
rcu: rcu_preempt kthread starved for 10502 jiffies! g50029 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->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:R  running task     stack:27000 pid:   15 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5030 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376
 schedule+0x11b/0x1f0 kernel/sched/core.c:6459
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1884
 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:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
NMI backtrace for cpu 1
CPU: 1 PID: 13959 Comm: syz-executor.4 Not tainted 5.15.150-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:166 [inline]
 rcu_check_gp_kthread_starvation+0x1d2/0x240 kernel/rcu/tree_stall.h:487
 print_other_cpu_stall+0x137a/0x14d0 kernel/rcu/tree_stall.h:592
 check_cpu_stall kernel/rcu/tree_stall.h:745 [inline]
 rcu_pending kernel/rcu/tree.c:3932 [inline]
 rcu_sched_clock_irq+0xa38/0x1150 kernel/rcu/tree.c:2619
 update_process_times+0x196/0x200 kernel/time/timer.c:1788
 tick_sched_handle kernel/time/tick-sched.c:254 [inline]
 tick_sched_timer+0x386/0x550 kernel/time/tick-sched.c:1473
 __run_hrtimer kernel/time/hrtimer.c:1686 [inline]
 __hrtimer_run_queues+0x55b/0xcf0 kernel/time/hrtimer.c:1750
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1085 [inline]
 __sysvec_apic_timer_interrupt+0x139/0x470 arch/x86/kernel/apic/apic.c:1102
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1096
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:csd_lock_wait kernel/smp.c:440 [inline]
RIP: 0010:smp_call_function_many_cond+0xa93/0xd90 kernel/smp.c:969
Code: 04 03 84 c0 0f 85 84 00 00 00 45 8b 7d 00 44 89 fe 83 e6 01 31 ff e8 ac ce 0b 00 41 83 e7 01 75 07 e8 41 cb 0b 00 eb 41 f3 90 <48> b8 00 00 00 00 00 fc ff df 0f b6 04 03 84 c0 75 11 41 f7 45 00
RSP: 0018:ffffc90003087a00 EFLAGS: 00000293
RAX: ffffffff81746a74 RBX: 1ffff11017348541 RCX: ffff888074099dc0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90003087b40 R08: ffffffff81746a44 R09: fffffbfff1f79e19
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffff8880b9a42a08 R14: ffff8880b9b3b380 R15: 0000000000000001
 on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1135
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:1201 [inline]
 text_poke_bp_batch+0x2ad/0x830 arch/x86/kernel/alternative.c:1392
 text_poke_flush arch/x86/kernel/alternative.c:1560 [inline]
 text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1567
 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146
 static_key_disable_cpuslocked+0xca/0x1b0 kernel/jump_label.c:207
 static_key_disable+0x16/0x20 kernel/jump_label.c:215
 tracepoint_remove_func kernel/tracepoint.c:417 [inline]
 tracepoint_probe_unregister+0x6e6/0x980 kernel/tracepoint.c:551
 bpf_raw_tp_link_release+0x5f/0x80 kernel/bpf/syscall.c:2878
 bpf_link_free kernel/bpf/syscall.c:2449 [inline]
 bpf_link_put+0x234/0x2c0 kernel/bpf/syscall.c:2475
 bpf_link_release+0x37/0x40 kernel/bpf/syscall.c:2483
 __fput+0x3bf/0x890 fs/file_table.c:280
 task_work_run+0x129/0x1a0 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop+0x106/0x130 kernel/entry/common.c:175
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x5d/0x250 kernel/entry/common.c:301
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f0637555c9a
Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 03 7f 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 63 7f 02 00 8b 44 24
RSP: 002b:00007fffc1e33ca0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000006 RCX: 00007f0637555c9a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 0000000000000032 R08: 0000001b30720000 R09: 000000000000009a
R10: 0000000081a6f925 R11: 0000000000000293 R12: 00007f06370da5e0
R13: ffffffffffffffff R14: 00007f06370d9000 R15: 00000000000d49b0
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/05 05:19 linux-5.15.y 80efc6265290 5fc53669 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in batadv_purge_orig
2023/12/06 18:54 linux-5.15.y 9b91d36ba301 e3299f55 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in batadv_purge_orig
* Struck through repros no longer work on HEAD.