syzbot


INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet (4)

Status: auto-obsoleted due to no activity on 2023/04/28 17:43
Subsystems: batman
[Documentation on labels]
First crash: 584d, last: 459d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet 1 1533d 1533d 0/1 auto-closed as invalid on 2020/06/19 05:22
linux-6.1 INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet 3 189d 295d 0/3 auto-obsoleted due to no activity on 2024/02/02 20:15
upstream INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet (3) batman 2 690d 752d 0/26 auto-closed as invalid on 2022/09/09 16:10
upstream INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet (2) batman 6 842d 1035d 0/26 closed as invalid on 2022/02/08 10:00
linux-5.15 BUG: soft lockup in batadv_iv_send_outstanding_bat_ogm_packet origin:lts-only C error 9 55d 419d 0/3 upstream: reported C repro on 2023/03/09 22:19
upstream INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet batman 2 1162d 1166d 0/26 auto-closed as invalid on 2021/05/25 23:54
linux-4.14 BUG: soft lockup in batadv_iv_send_outstanding_bat_ogm_packet C error 1 610d 672d 0/1 upstream: reported C repro on 2022/06/30 02:55
linux-4.19 BUG: soft lockup in batadv_iv_send_outstanding_bat_ogm_packet (2) 1 631d 631d 0/1 auto-obsoleted due to no activity on 2022/12/07 08:10
linux-4.19 BUG: soft lockup in batadv_iv_send_outstanding_bat_ogm_packet 1 976d 976d 0/1 auto-closed as invalid on 2021/12/28 02:54

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (0 ticks this GP) idle=6894/1/0x4000000000000000 softirq=75140/75141 fqs=0
	(detected by 1, t=10502 jiffies, g=103481, q=43 ncpus=2)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 12817 Comm: kworker/u4:11 Not tainted 6.1.0-rc8-syzkaller-00164-g4cee37b3a4e6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Workqueue: bat_events batadv_iv_send_outstanding_bat_ogm_packet
RIP: 0010:__kasan_check_read+0x8/0x20 mm/kasan/shadow.c:31
Code: 0f 0b 48 83 c4 60 5b 5d 41 5c c3 48 05 00 80 00 00 48 89 fb 48 39 c7 0f 82 ff 7f dc 07 eb e1 0f 1f 00 f3 0f 1e fa 48 8b 0c 24 <89> f6 31 d2 e9 5f f7 ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f
RSP: 0018:ffffc90000007910 EFLAGS: 00000056
RAX: 0000000000000000 RBX: 1ffff92000000f2a RCX: ffffffff816289ee
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff910f4a40
RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff910f4a4f
R10: fffffbfff221e949 R11: 0000000000000000 R12: ffff88803a1862d8
R13: 0000000000000000 R14: 0000000000000000 R15: ffff88803a1862f8
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f87fb381718 CR3: 000000002bf9c000 CR4: 0000000000350ef0
Call Trace:
 <IRQ>
 instrument_atomic_read include/linux/instrumented.h:72 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
 hlock_class kernel/locking/lockdep.c:227 [inline]
 mark_lock.part.0+0xee/0x1910 kernel/locking/lockdep.c:4612
 mark_lock kernel/locking/lockdep.c:4598 [inline]
 mark_usage kernel/locking/lockdep.c:4526 [inline]
 __lock_acquire+0x14a2/0x56d0 kernel/locking/lockdep.c:5009
 lock_acquire kernel/locking/lockdep.c:5668 [inline]
 lock_acquire+0x1e3/0x630 kernel/locking/lockdep.c:5633
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x3d/0x60 kernel/locking/spinlock.c:162
 debug_object_activate+0x132/0x3e0 lib/debugobjects.c:658
 debug_hrtimer_activate kernel/time/hrtimer.c:420 [inline]
 debug_activate kernel/time/hrtimer.c:475 [inline]
 enqueue_hrtimer+0x2b/0x470 kernel/time/hrtimer.c:1084
 __run_hrtimer kernel/time/hrtimer.c:1702 [inline]
 __hrtimer_run_queues+0xc12/0xfb0 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x320/0x790 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1096 [inline]
 __sysvec_apic_timer_interrupt+0x180/0x640 arch/x86/kernel/apic/apic.c:1113
 sysvec_apic_timer_interrupt+0x92/0xc0 arch/x86/kernel/apic/apic.c:1107
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649
RIP: 0010:lock_acquire+0x227/0x630 kernel/locking/lockdep.c:5636
Code: 75 9f 7e 83 f8 01 0f 85 3a 03 00 00 9c 58 f6 c4 02 0f 85 25 03 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:ffffc900269ffa98 EFLAGS: 00000206
RAX: dffffc0000000000 RBX: 1ffff92004d3ff56 RCX: 0e805eea3875f473
RDX: 1ffff11007430c41 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff910f4a47
R10: fffffbfff221e948 R11: 0000000000000000 R12: 0000000000000002
R13: 0000000000000000 R14: ffffffff8c58fbc0 R15: 0000000000000000
 rcu_lock_acquire include/linux/rcupdate.h:304 [inline]
 rcu_read_lock include/linux/rcupdate.h:738 [inline]
 batadv_iv_ogm_slide_own_bcast_window net/batman-adv/bat_iv_ogm.c:755 [inline]
 batadv_iv_ogm_schedule_buff+0x5d2/0x1430 net/batman-adv/bat_iv_ogm.c:826
 batadv_iv_ogm_schedule net/batman-adv/bat_iv_ogm.c:869 [inline]
 batadv_iv_ogm_schedule net/batman-adv/bat_iv_ogm.c:862 [inline]
 batadv_iv_send_outstanding_bat_ogm_packet+0x744/0x910 net/batman-adv/bat_iv_ogm.c:1713
 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289
 worker_thread+0x669/0x1090 kernel/workqueue.c:2436
 kthread+0x2e8/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10501 jiffies! g103481 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=1 timer-softirq=97897
rcu: rcu_preempt kthread starved for 10502 jiffies! g103481 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:28560 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5209 [inline]
 __schedule+0xae9/0x53f0 kernel/sched/core.c:6521
 schedule+0xde/0x1b0 kernel/sched/core.c:6597
 schedule_timeout+0x14e/0x2a0 kernel/time/timer.c:1935
 rcu_gp_fqs_loop+0x190/0x910 kernel/rcu/tree.c:1660
 rcu_gp_kthread+0x23a/0x360 kernel/rcu/tree.c:1859
 kthread+0x2e8/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 1 PID: 21430 Comm: syz-executor.5 Not tainted 6.1.0-rc8-syzkaller-00164-g4cee37b3a4e6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:__sanitizer_cov_trace_pc+0x57/0x70 kernel/kcov.c:213
Code: 8c 15 00 00 85 c0 74 2b 8b 82 68 15 00 00 83 f8 02 75 20 48 8b 8a 70 15 00 00 8b 92 6c 15 00 00 48 8b 01 48 83 c0 01 48 39 c2 <76> 07 48 89 01 48 89 34 c1 c3 66 66 2e 0f 1f 84 00 00 00 00 00 0f
RSP: 0018:ffffc90027057978 EFLAGS: 00000246
RAX: 0000000000040000 RBX: ffff8880b9a43420 RCX: ffffc9001086e000
RDX: 0000000000040000 RSI: ffffffff8175233d RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000003
R13: ffffed1017348685 R14: 0000000000000001 R15: dffffc0000000000
FS:  00007f87fb381700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33a26000 CR3: 000000002bf9c000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 rep_nop arch/x86/include/asm/vdso/processor.h:13 [inline]
 cpu_relax arch/x86/include/asm/vdso/processor.h:18 [inline]
 csd_lock_wait kernel/smp.c:413 [inline]
 smp_call_function_many_cond+0x43d/0x10a0 kernel/smp.c:987
 clock_was_set+0x615/0x870 kernel/time/hrtimer.c:974
 timekeeping_inject_offset+0x4b4/0x620 kernel/time/timekeeping.c:1395
 do_adjtimex+0x333/0xa40 kernel/time/timekeeping.c:2444
 do_clock_adjtime kernel/time/posix-timers.c:1118 [inline]
 __do_sys_clock_adjtime+0x163/0x270 kernel/time/posix-timers.c:1130
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f87fa68c0d9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f87fb381168 EFLAGS: 00000246 ORIG_RAX: 0000000000000131
RAX: ffffffffffffffda RBX: 00007f87fa7ac050 RCX: 00007f87fa68c0d9
RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000000
RBP: 00007f87fa6e7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff5dcbcd6f R14: 00007f87fb381300 R15: 0000000000022000
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/11 10:34 upstream 4cee37b3a4e6 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet
2022/09/25 14:01 upstream 105a36f3694e 0042f2b4 .config console log report info ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet
2023/01/28 17:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c62c88e05937 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: soft lockup in batadv_iv_send_outstanding_bat_ogm_packet
* Struck through repros no longer work on HEAD.