BUG: soft lockup in batadv_iv_send_outstanding_bat_ogm_packet (2)

7 views
Skip to first unread message

syzbot

unread,
Aug 9, 2022, 4:10:23 AM8/9/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11f6762a080000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=ec300b6bea34e2bf908e
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+ec300b...@syzkaller.appspotmail.com

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


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Dec 7, 2022, 3:10:30 AM12/7/22
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages