syzbot


INFO: rcu detected stall in batadv_purge_orig (2)

Status: auto-obsoleted due to no activity on 2024/02/09 00:50
Subsystems: batman
[Documentation on labels]
First crash: 383d, last: 171d
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 626d 626d 0/26 auto-obsoleted due to no activity on 2022/11/10 10:36
linux-5.15 INFO: rcu detected stall in batadv_purge_orig 2 56d 145d 0/3 upstream: reported on 2023/12/06 18:55
linux-6.1 INFO: rcu detected stall in batadv_purge_orig 1 31d 31d 0/3 upstream: reported on 2024/03/29 19:31
upstream BUG: soft lockup in batadv_purge_orig batman 1 31d 31d 3/26 internal: reported on 2024/03/29 21:11

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (1 GPs behind) idle=a884/1/0x4000000000000000 softirq=132985/132986 fqs=4
rcu: 	(detected by 0, t=10502 jiffies, g=192017, q=367 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 16445 Comm: kworker/u4:13 Not tainted 6.3.0-rc6-syzkaller-00035-g0bcc40255504 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
Workqueue: bat_events batadv_purge_orig
RIP: 0010:advance_sched+0x5c2/0xc80
Code: ff ff ff ff 7f 49 bc 00 00 00 00 00 fc ff df 4c 8b 74 24 28 48 8b 6c 24 48 eb 49 e8 e8 da c4 f8 49 bc 00 00 00 00 00 fc ff df <48> 8b 44 24 50 42 80 3c 20 00 4c 8b 74 24 28 48 8b 5c 24 38 74 08
RSP: 0018:ffffc900001e0c90 EFLAGS: 00000046
RAX: ffffffff88c58df8 RBX: ffff8880331b6930 RCX: ffff88803d0f57c0
RDX: 0000000080010001 RSI: 0000000080000001 RDI: 0000000000000000
RBP: 1ffff11006636c01 R08: ffffffff88c58dc9 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8880331b6008 R14: 0000000000000000 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff9fd18bb8 CR3: 000000003f237000 CR4: 00000000003526e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x59f/0xd10 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x396/0x980 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1096 [inline]
 __sysvec_apic_timer_interrupt+0x13f/0x480 arch/x86/kernel/apic/apic.c:1113
 sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1107
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
RIP: 0010:__local_bh_disable_ip+0x24/0x220 kernel/softirq.c:318
Code: 00 0f 1f 44 00 00 f3 0f 1e fa 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec a0 00 00 00 41 89 f7 48 89 7c 24 18 <65> 48 8b 04 25 28 00 00 00 48 89 84 24 80 00 00 00 49 bc 00 00 00
RSP: 0018:ffffc90014ed79e0 EFLAGS: 00000282
RAX: 1ffff1100d0fa8c1 RBX: ffffffff8a704318 RCX: ffff8880687d4600
RDX: ffff8880687d4608 RSI: 0000000000000201 RDI: ffffffff8a704318
RBP: ffffc90014ed7ab8 R08: dffffc0000000000 R09: fffffbfff205b654
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88802890fc28 R14: ffff8880201f0440 R15: 0000000000000201
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:125 [inline]
 _raw_spin_lock_bh+0x1c/0x50 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:355 [inline]
 batadv_purge_orig_ref+0x1b8/0x15a0 net/batman-adv/originator.c:1243
 batadv_purge_orig+0x19/0x60 net/batman-adv/originator.c:1272
 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2390
 worker_thread+0xa63/0x1210 kernel/workqueue.c:2537
 kthread+0x270/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
rcu: rcu_preempt kthread starved for 10494 jiffies! g192017 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:25952 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5307 [inline]
 __schedule+0x173b/0x4630 kernel/sched/core.c:6625
 schedule+0xc3/0x180 kernel/sched/core.c:6701
 schedule_timeout+0x1bd/0x310 kernel/time/timer.c:2167
 rcu_gp_fqs_loop+0x2c6/0x1010 kernel/rcu/tree.c:1608
 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:1807
 kthread+0x270/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 PID: 8001 Comm: syz-executor.5 Not tainted 6.3.0-rc6-syzkaller-00035-g0bcc40255504 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
RIP: 0010:csd_lock_wait kernel/smp.c:413 [inline]
RIP: 0010:smp_call_function_single+0x506/0x26b0 kernel/smp.c:776
Code: 58 eb 49 e8 7c 5b 0b 00 eb 42 4c 8b 64 24 78 4c 89 eb 44 8b 6c 24 58 f3 90 43 0f b6 04 3e 84 c0 75 0f f7 03 01 00 00 00 74 1d <e8> 55 5b 0b 00 eb e6 89 d9 80 e1 07 80 c1 03 38 c1 7c e5 48 89 df
RSP: 0018:ffffc900161977e0 EFLAGS: 00000202
RAX: 0000000000000000 RBX: ffffc900161978c8 RCX: ffff888028a83a80
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc90016197b50 R08: ffffffff817f0d48 R09: fffff52002c32ec5
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92002c32f14
R13: 0000000000000000 R14: 1ffff92002c32f19 R15: dffffc0000000000
FS:  00005555565b3400(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f67583831b8 CR3: 0000000092468000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 rcu_barrier+0x32e/0x540 kernel/rcu/tree.c:4008
 kvm_mmu_uninit_vm+0x3e/0x70 arch/x86/kvm/mmu/mmu.c:6132
 kvm_arch_destroy_vm+0x3a7/0x440 arch/x86/kvm/x86.c:12381
 kvm_destroy_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:1310 [inline]
 kvm_put_kvm+0xd00/0x15f0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:1344
 kvm_vm_release+0x46/0x50 arch/x86/kvm/../../../virt/kvm/kvm_main.c:1367
 __fput+0x3b7/0x890 fs/file_table.c:321
 task_work_run+0x24a/0x300 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xd9/0x100 kernel/entry/common.c:171
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
 syscall_exit_to_user_mode+0x64/0x280 kernel/entry/common.c:297
 do_syscall_64+0x4d/0xc0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f707c03e01b
Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44
RSP: 002b:00007ffc5b53ea40 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000006 RCX: 00007f707c03e01b
RDX: 00007f707bc00550 RSI: ffffffffffffffff RDI: 0000000000000005
RBP: 00007f707c1ad980 R08: 0000000000000000 R09: 00007f707bc00000
R10: 00007f707bc00558 R11: 0000000000000293 R12: 0000000000321431
R13: 00007ffc5b53eb40 R14: 00007f707c1abf80 R15: 0000000000000032
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/13 00:19 upstream 0bcc40255504 82d5e53e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in batadv_purge_orig
2023/11/11 00:49 net-next 89cdf9d55601 45e9b83e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: rcu detected stall in batadv_purge_orig
2023/09/06 06:36 net-next bd6c11bc43c4 8bc9053e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: rcu detected stall in batadv_purge_orig
2023/06/20 16:02 net-next 712557f21072 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce INFO: rcu detected stall in batadv_purge_orig
* Struck through repros no longer work on HEAD.