syzbot


BUG: soft lockup in batadv_iv_send_outstanding_bat_ogm_packet (2)

Status: auto-obsoleted due to no activity on 2022/12/07 08:10
Reported-by: syzbot+ec300b6bea34e2bf908e@syzkaller.appspotmail.com
First crash: 625d, last: 625d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 BUG: soft lockup in batadv_iv_send_outstanding_bat_ogm_packet C error 1 603d 665d 0/1 upstream: reported C repro on 2022/06/30 02:55
linux-5.15 BUG: soft lockup in batadv_iv_send_outstanding_bat_ogm_packet origin:lts-only C error 9 48d 412d 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 452d 577d 0/26 auto-obsoleted due to no activity on 2023/04/28 17:43
linux-4.19 BUG: soft lockup in batadv_iv_send_outstanding_bat_ogm_packet 1 969d 969d 0/1 auto-closed as invalid on 2021/12/28 02:54
linux-6.1 INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet 3 182d 288d 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 683d 745d 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 835d 1028d 0/26 closed as invalid on 2022/02/08 10:00
upstream INFO: rcu detected stall in batadv_iv_send_outstanding_bat_ogm_packet batman 2 1155d 1159d 0/26 auto-closed as invalid on 2021/05/25 23:54

Sample crash report:
batman_adv: batadv0: Forced to purge local tt entries to fit new maximum fragment MTU (-320)
batman_adv: batadv0: Forced to purge local tt entries to fit new maximum fragment MTU (-320)
batman_adv: batadv0: Forced to purge local tt entries to fit new maximum fragment MTU (-320)
watchdog: BUG: soft lockup - CPU#1 stuck for 22s! [kworker/u4:0:26361]
Modules linked in:
irq event stamp: 51346137
hardirqs last  enabled at (51346136): [<ffffffff8129070b>] kvm_wait arch/x86/kernel/kvm.c:799 [inline]
hardirqs last  enabled at (51346136): [<ffffffff8129070b>] kvm_wait+0x14b/0x240 arch/x86/kernel/kvm.c:779
hardirqs last disabled at (51346137): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last  enabled at (51336130): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
softirqs last disabled at (51336132): [<ffffffff87dcad5a>] spin_lock_bh include/linux/spinlock.h:334 [inline]
softirqs last disabled at (51336132): [<ffffffff87dcad5a>] batadv_tt_local_commit_changes+0x1a/0x30 net/batman-adv/translation-table.c:3968
CPU: 1 PID: 26361 Comm: kworker/u4:0 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
Workqueue: bat_events batadv_iv_send_outstanding_bat_ogm_packet
RIP: 0010:native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:61
Code: 48 89 df e8 f4 20 7f f9 e9 2e ff ff ff 48 89 df e8 e7 20 7f f9 eb 82 90 90 90 90 90 e9 07 00 00 00 0f 00 2d 14 43 4e 00 fb f4 <c3> 90 e9 07 00 00 00 0f 00 2d 04 43 4e 00 f4 c3 90 90 41 56 41 55
RSP: 0018:ffff888055477a78 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff13e3054 RBX: ffff888034f66240 RCX: 1ffff110131bb57c
RDX: dffffc0000000000 RSI: ffff888098ddabc0 RDI: ffff888098ddab44
RBP: 0000000000000003 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000286
R13: ffffed10069ecc48 R14: 0000000000000001 R15: ffff8880ba12be00
FS:  0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555555fd1848 CR3: 000000009115a000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 arch_safe_halt arch/x86/include/asm/paravirt.h:94 [inline]
 kvm_wait arch/x86/kernel/kvm.c:799 [inline]
 kvm_wait+0x179/0x240 arch/x86/kernel/kvm.c:779
 pv_wait arch/x86/include/asm/paravirt.h:689 [inline]
 pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:471 [inline]
 __pv_queued_spin_lock_slowpath+0x86a/0xae0 kernel/locking/qspinlock.c:474
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:679 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:53 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:88 [inline]
 do_raw_spin_lock+0x189/0x220 kernel/locking/spinlock_debug.c:113
 spin_lock_bh include/linux/spinlock.h:334 [inline]
 batadv_tt_local_commit_changes+0x1a/0x30 net/batman-adv/translation-table.c:3968
 batadv_iv_ogm_schedule_buff+0x103c/0x1340 net/batman-adv/bat_iv_ogm.c:994
 batadv_iv_ogm_schedule net/batman-adv/bat_iv_ogm.c:1052 [inline]
 batadv_iv_ogm_schedule net/batman-adv/bat_iv_ogm.c:1045 [inline]
 batadv_iv_send_outstanding_bat_ogm_packet+0x68c/0x7a0 net/batman-adv/bat_iv_ogm.c:1871
 process_one_work+0x864/0x1570 kernel/workqueue.c:2153
 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 25189 Comm: syz-executor.1 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
RIP: 0010:__trace_hardirqs_on_caller kernel/locking/lockdep.c:2838 [inline]
RIP: 0010:lockdep_hardirqs_on+0x2ac/0x5c0 kernel/locking/lockdep.c:2884
Code: df e8 08 9e ff ff 85 c0 0f 84 c4 00 00 00 48 8d bb 70 08 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 04 02 <84> c0 74 08 3c 03 0f 8e d8 01 00 00 8b 83 70 08 00 00 85 c0 0f 85
RSP: 0018:ffff88809f7976d8 EFLAGS: 00000806
RAX: 0000000000000000 RBX: ffff888096f28580 RCX: 1ffff11012de51ca
RDX: 1ffff11012de51be RSI: ffff888096f28e30 RDI: ffff888096f28df0
RBP: ffffffff813922a9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff888096f28580
R13: ffff88809e1b3a88 R14: ffff888034f65c00 R15: 0000000000000350
FS:  00007f1dda814700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055e4e2a41238 CR3: 0000000017b7a000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __local_bh_enable_ip+0x159/0x270 kernel/softirq.c:194
 spin_unlock_bh include/linux/spinlock.h:374 [inline]
 batadv_tt_local_purge_pending_clients+0x2aa/0x3a0 net/batman-adv/translation-table.c:3924
 batadv_tt_local_resize_to_mtu+0x96/0x130 net/batman-adv/translation-table.c:4208
 batadv_update_min_mtu net/batman-adv/hard-interface.c:637 [inline]
 batadv_hard_if_event+0xbb3/0x15c0 net/batman-adv/hard-interface.c:1059
 notifier_call_chain+0xc0/0x230 kernel/notifier.c:93
 call_netdevice_notifiers_mtu net/core/dev.c:1785 [inline]
 dev_set_mtu_ext+0x384/0x580 net/core/dev.c:7819
 dev_set_mtu+0x95/0x120 net/core/dev.c:7840
 dev_ifsioc+0x30a/0x8c0 net/core/dev_ioctl.c:244
 dev_ioctl+0x1ab/0xc50 net/core/dev_ioctl.c:488
 sock_do_ioctl+0x178/0x300 net/socket.c:1038
 sock_ioctl+0x2ef/0x5d0 net/socket.c:1135
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f1ddbe9f279
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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:00007f1dda814168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f1ddbfb1f80 RCX: 00007f1ddbe9f279
RDX: 0000000020000040 RSI: 0000000000008922 RDI: 0000000000000003
RBP: 00007f1ddbef9189 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc11de86cf R14: 00007f1dda814300 R15: 0000000000022000

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/09 08:09 linux-4.19.y 3f8a27f9e27b da700653 .config console log report info ci2-linux-4-19 BUG: soft lockup in batadv_iv_send_outstanding_bat_ogm_packet
* Struck through repros no longer work on HEAD.