syzbot


INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet (2)

Status: upstream: reported on 2024/05/18 05:47
Reported-by: syzbot+c9aac8e0e280f2968a2e@syzkaller.appspotmail.com
First crash: 37d, last: 2d17h
Similar bugs (10)
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 1586d 1586d 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 243d 349d 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 744d 806d 0/27 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 895d 1089d 0/27 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 13 3d02h 473d 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 (4) batman 3 513d 638d 0/27 auto-obsoleted due to no activity on 2023/04/28 17:43
upstream INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet batman 2 1216d 1219d 0/27 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 664d 725d 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 685d 685d 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 1029d 1029d 0/1 auto-closed as invalid on 2021/12/28 02:54

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	1-...!: (1 GPs behind) idle=e174/1/0x4000000000000000 softirq=8736/8737 fqs=0
	(t=10501 jiffies g=9129 q=145 ncpus=2)
rcu: rcu_preempt kthread timer wakeup didn't happen for 10501 jiffies! g9129 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=0 timer-softirq=4915
rcu: rcu_preempt kthread starved for 10504 jiffies! g9129 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->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:I stack:26712 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5245 [inline]
 __schedule+0x142d/0x4550 kernel/sched/core.c:6558
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1965
 rcu_gp_fqs_loop+0x2d2/0x1150 kernel/rcu/tree.c:1706
 rcu_gp_kthread+0xa3/0x3b0 kernel/rcu/tree.c:1905
 kthread+0x28d/0x320 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:
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3564 Comm: syz-fuzzer Not tainted 6.1.94-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:irq_enter_rcu+0x2/0xe0 kernel/softirq.c:612
Code: 07 80 c1 03 38 c1 0f 8c fb fd ff ff 4c 89 e7 e8 94 e7 8d 00 8b 74 24 10 48 8b 54 24 18 e9 e5 fd ff ff e8 01 ed 36 09 90 41 57 <41> 56 53 49 bf 00 00 00 00 00 fc ff df bf 00 00 01 00 e8 37 34 0a
RSP: 0018:ffffc90000007fe8 EFLAGS: 00000082
RAX: 0000000000000000 RBX: ffffc90003b2f5d8 RCX: ffffffff819157eb
RDX: 0000000000000000 RSI: ffffffff8ae66940 RDI: ffffffff8b3d4660
RBP: 0000000000000000 R08: dffffc0000000000 R09: fffffbfff1ce7146
R10: 0000000000000000 R11: ffffc90000007ff8 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  000000c000675090(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fffe1b95e80 CR3: 0000000075410000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 sysvec_irq_work+0x81/0xb0 arch/x86/kernel/irq_work.c:17
 </IRQ>
 <TASK>
 asm_sysvec_irq_work+0x16/0x20 arch/x86/include/asm/idtentry.h:679
RIP: 0010:finish_task_switch+0x1d3/0x810 kernel/sched/core.c:5124
Code: 2e 0b 00 48 83 c4 08 4c 89 f7 e8 98 30 00 00 0f 1f 44 00 00 4c 89 f7 e8 7b 23 36 09 e8 06 1e 32 00 fb 49 8d bc 24 f8 15 00 00 <48> 89 f8 48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df 42 0f b6 04 28
RSP: 0018:ffffc90003b2f688 EFLAGS: 00000282
RAX: 4663e289d8f46400 RBX: ffff888022890034 RCX: ffffffff91c95103
RDX: dffffc0000000000 RSI: ffffffff8aec0240 RDI: ffff888027e35178
RBP: ffffc90003b2f6d0 R08: dffffc0000000000 R09: ffffed1017307541
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888027e33b80
R13: 1ffff110173076eb R14: ffff8880b983aa00 R15: ffff8880b983b758
 context_switch kernel/sched/core.c:5248 [inline]
 __schedule+0x1435/0x4550 kernel/sched/core.c:6558
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6870
 irqentry_exit+0x53/0x80 kernel/entry/common.c:439
 asm_sysvec_reschedule_ipi+0x16/0x20 arch/x86/include/asm/idtentry.h:658
RIP: 0010:kasan_check_range+0x1/0x290 mm/kasan/generic.c:188
Code: 01 c6 48 89 c7 e8 2f c4 a9 08 31 c0 c3 0f 0b b8 ea ff ff ff c3 0f 0b b8 ea ff ff ff c3 cc cc cc cc cc cc cc cc cc cc cc cc 55 <41> 57 41 56 53 b0 01 48 85 f6 0f 84 9a 01 00 00 48 89 fd 48 01 f5
RSP: 0018:ffffc90003b2fa10 EFLAGS: 00000246
RAX: 0000000000000001 RBX: ffff888027e33b80 RCX: ffffffff8a939d86
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff888027e33b80
RBP: ffffc90003b2fac8 R08: dffffc0000000000 R09: ffffed1017307541
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000765f4c
R13: 000000001c000004 R14: ffffffff8a939cd9 R15: dffffc0000000000
 instrument_atomic_read include/linux/instrumented.h:72 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
 test_ti_thread_flag include/linux/thread_info.h:118 [inline]
 need_resched include/linux/sched.h:2231 [inline]
 preempt_schedule_common+0xa6/0xd0 kernel/sched/core.c:6735
 preempt_schedule+0xd9/0xe0 kernel/sched/core.c:6751
 preempt_schedule_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:34
 __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline]
 _raw_spin_unlock_irq+0x3c/0x40 kernel/locking/spinlock.c:202
 spin_unlock_irq include/linux/spinlock.h:401 [inline]
 get_signal+0x154b/0x17d0 kernel/signal.c:2865
 arch_do_signal_or_restart+0xb0/0x1a10 arch/x86/kernel/signal.c:871
 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:174
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
 syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303
 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x40720c
Code: 89 e5 48 83 ec 38 e8 13 00 00 00 48 83 c4 38 5d c3 cc cc cc cc cc cc cc cc cc cc cc cc cc 49 89 f2 48 89 fa 48 89 ce 48 89 df <0f> 05 48 3d 01 f0 ff ff 76 15 48 f7 d8 48 89 c1 48 c7 c0 ff ff ff
RSP: 002b:000000c0009f1d08 EFLAGS: 00000202
RAX: 00000000000000f7 RBX: 0000000000000001 RCX: 000000000040720e
RDX: 000000c0009f1e18 RSI: 0000000000000df3 RDI: 0000000000000001
RBP: 000000c0009f1d48 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000001000004 R11: 0000000000000202 R12: 000000c0009f1e60
R13: 0000000000000004 R14: 000000c0007fe680 R15: 0000000000000013
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3737 Comm: kworker/u4:9 Not tainted 6.1.94-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Workqueue: bat_events batadv_iv_send_outstanding_bat_ogm_packet
RIP: 0010:hlock_class kernel/locking/lockdep.c:228 [inline]
RIP: 0010:__lock_acquire+0xf7f/0x1f80 kernel/locking/lockdep.c:5045
Code: 00 8b 1b 81 e3 ff 1f 00 00 48 89 d8 48 c1 e8 06 48 8d 3c c5 20 d2 49 90 be 08 00 00 00 e8 d9 98 77 00 48 0f a3 1d c1 55 df 0e <0f> 83 bb 01 00 00 48 8d 04 5b 48 c1 e0 06 48 8d 98 20 31 19 90 48
RSP: 0018:ffffc9000454f340 EFLAGS: 00000057
RAX: 0000000000000001 RBX: 000000000000002c RCX: ffffffff816a7c57
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff9049d220
RBP: 66abfeeeef0b191f R08: dffffc0000000000 R09: fffffbfff2093a45
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88802126c658
R13: ffff88802126bb80 R14: 0000000000000000 R15: 1ffff1100424d8e4
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fffe1b95e80 CR3: 000000007c427000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662
 _raw_spin_lock_nested+0x2d/0x40 kernel/locking/spinlock.c:378
 raw_spin_rq_lock_nested+0x26/0x140 kernel/sched/core.c:537
 raw_spin_rq_lock kernel/sched/sched.h:1354 [inline]
 rq_lock kernel/sched/sched.h:1644 [inline]
 __schedule+0x33d/0x4550 kernel/sched/core.c:6475
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6870
 irqentry_exit+0x53/0x80 kernel/entry/common.c:439
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:lockdep_enabled kernel/locking/lockdep.c:119 [inline]
RIP: 0010:lock_release+0x10a/0xa20 kernel/locking/lockdep.c:5675
Code: c0 e4 be 73 8e 48 c1 e8 03 42 0f b6 04 38 84 c0 0f 85 cd 05 00 00 83 3d 87 31 09 0d 00 0f 84 2b 05 00 00 65 8b 05 56 eb 97 7e <85> c0 0f 85 1c 05 00 00 65 4c 8b 35 c6 e1 97 7e 49 8d 9e dc 0a 00
RSP: 0018:ffffc9000454f920 EFLAGS: 00000202
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff816a8d27
RDX: 0000000000000000 RSI: ffffffff8b3d4640 RDI: ffffffff8b3d4600
RBP: ffffc9000454fa50 R08: dffffc0000000000 R09: fffffbfff1ce7146
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920008a9f30
R13: ffffffff8a572a3a R14: dffffc0000000000 R15: dffffc0000000000
 rcu_lock_release include/linux/rcupdate.h:355 [inline]
 rcu_read_unlock include/linux/rcupdate.h:824 [inline]
 batadv_iv_ogm_slide_own_bcast_window net/batman-adv/bat_iv_ogm.c:772 [inline]
 batadv_iv_ogm_schedule_buff net/batman-adv/bat_iv_ogm.c:826 [inline]
 batadv_iv_ogm_schedule+0x6f4/0x1090 net/batman-adv/bat_iv_ogm.c:869
 batadv_iv_send_outstanding_bat_ogm_packet+0x6fa/0x800 net/batman-adv/bat_iv_ogm.c:1713
 process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292
 worker_thread+0xa47/0x1200 kernel/workqueue.c:2439
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
CPU: 1 PID: 3777 Comm: syz-executor.2 Not tainted 6.1.94-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:finish_task_switch+0x1d3/0x810 kernel/sched/core.c:5124
Code: 2e 0b 00 48 83 c4 08 4c 89 f7 e8 98 30 00 00 0f 1f 44 00 00 4c 89 f7 e8 7b 23 36 09 e8 06 1e 32 00 fb 49 8d bc 24 f8 15 00 00 <48> 89 f8 48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df 42 0f b6 04 28
RSP: 0018:ffffc900047e78a8 EFLAGS: 00000286
RAX: d820c3c1f11dbe00 RBX: ffff8880254b9df4 RCX: ffffffff91c95103
RDX: dffffc0000000000 RSI: ffffffff8aec0240 RDI: ffff8880254b5178
RBP: ffffc900047e78f0 R08: dffffc0000000000 R09: ffffed1017327541
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880254b3b80
R13: 1ffff110173276eb R14: ffff8880b993aa00 R15: ffff8880b993b758
FS:  00007f4141fed6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000007c427000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 context_switch kernel/sched/core.c:5248 [inline]
 __schedule+0x1435/0x4550 kernel/sched/core.c:6558
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 futex_wait_queue+0x149/0x1d0 kernel/futex/waitwake.c:355
 futex_wait+0x203/0x5c0 kernel/futex/waitwake.c:656
 do_futex+0x3b5/0x490 kernel/futex/syscalls.c:106
 __do_sys_futex kernel/futex/syscalls.c:183 [inline]
 __se_sys_futex+0x3d7/0x460 kernel/futex/syscalls.c:164
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f414127d0a9
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:00007f4141fed178 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: ffffffffffffffda RBX: 00007f41413b3f88 RCX: 00007f414127d0a9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f41413b3f88
RBP: 00007f41413b3f80 R08: 00007f4141fed6c0 R09: 00007f4141fed6c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f41413b3f8c
R13: 000000000000000b R14: 00007ffeeda012a0 R15: 00007ffeeda01388
 </TASK>
sched: RT throttling activated

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/22 07:05 linux-6.1.y eb44d83053d6 edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet
2024/06/18 18:56 linux-6.1.y eb44d83053d6 639d6cdf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet
2024/06/10 15:45 linux-6.1.y 88690811da69 048c640a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet
2024/06/08 04:42 linux-6.1.y 88690811da69 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet
2024/06/07 09:42 linux-6.1.y 88690811da69 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet
2024/06/01 07:25 linux-6.1.y 88690811da69 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet
2024/05/18 05:46 linux-6.1.y 4078fa637fcd c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet
* Struck through repros no longer work on HEAD.