BUG: soft lockup in batadv_iv_send_outstanding_bat_ogm_packet

5 views
Skip to first unread message

syzbot

unread,
Aug 29, 2021, 10:54:19 PM8/29/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: e23d55af0e1f Linux 4.19.205
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=142507de300000
kernel config: https://syzkaller.appspot.com/x/.config?x=2221dd564152b412
dashboard link: https://syzkaller.appspot.com/bug?extid=a95fdf5a050977ccd5a4
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+a95fdf...@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#0 stuck for 23s! [kworker/u4:8:17546]
Modules linked in:
irq event stamp: 12746749
hardirqs last enabled at (12746748): [<ffffffff8129170b>] kvm_wait arch/x86/kernel/kvm.c:799 [inline]
hardirqs last enabled at (12746748): [<ffffffff8129170b>] kvm_wait+0x14b/0x240 arch/x86/kernel/kvm.c:779
hardirqs last disabled at (12746749): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last enabled at (12736174): [<ffffffff86766b55>] rcu_read_unlock_bh include/linux/rcupdate.h:717 [inline]
softirqs last enabled at (12736174): [<ffffffff86766b55>] __dev_queue_xmit+0x15f5/0x2e00 net/core/dev.c:3865
softirqs last disabled at (12736176): [<ffffffff87dc7aaa>] spin_lock_bh include/linux/spinlock.h:334 [inline]
softirqs last disabled at (12736176): [<ffffffff87dc7aaa>] batadv_tt_local_commit_changes+0x1a/0x30 net/batman-adv/translation-table.c:3968
CPU: 0 PID: 17546 Comm: kworker/u4:8 Not tainted 4.19.205-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
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 e4 56 7f f9 e9 2e ff ff ff 48 89 df e8 d7 56 7f f9 eb 82 90 90 90 90 90 e9 07 00 00 00 0f 00 2d 54 74 4e 00 fb f4 <c3> 90 e9 07 00 00 00 0f 00 2d 44 74 4e 00 f4 c3 90 90 41 56 41 55
RSP: 0018:ffff8880396a7a78 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff13e305c RBX: ffff88804583e7c0 RCX: 1ffff11012ca95d4
RDX: dffffc0000000000 RSI: ffff88809654ae80 RDI: ffff88809654ae04
RBP: 0000000000000003 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000286
R13: ffffed1008b07cf8 R14: 0000000000000001 R15: ffff8880ba02be00
FS: 0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005648d1a058e0 CR3: 0000000041955000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
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 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 29303 Comm: syz-executor.2 Not tainted 4.19.205-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:should_resched arch/x86/include/asm/preempt.h:99 [inline]
RIP: 0010:__local_bh_enable_ip+0x18d/0x270 kernel/softirq.c:196
Code: 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 0f 85 dd 00 00 00 48 83 3d d8 50 b8 08 00 0f 84 8d 00 00 00 fb 66 0f 1f 44 00 00 <65> 8b 05 3c ad c8 7e 85 c0 74 7d 5b 5d 41 5c c3 80 3d 85 75 d5 09
RSP: 0018:ffff888049bcebf8 EFLAGS: 00000286
RAX: 1ffffffff13e305b RBX: 0000000000000201 RCX: 1ffff1101324e1ba
RDX: dffffc0000000000 RSI: ffff888099270db0 RDI: ffff888099270d84
RBP: ffffffff87dba898 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff888099270500
R13: 0000000000000001 R14: 0000000000000000 R15: dffffc0000000000
FS: 00007fe2d15ac700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32825000 CR3: 00000000b4ec1000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
spin_unlock_bh include/linux/spinlock.h:374 [inline]
batadv_tt_local_purge+0x278/0x370 net/batman-adv/translation-table.c:1456
batadv_tt_local_resize_to_mtu+0x8e/0x130 net/batman-adv/translation-table.c:4207
batadv_hardif_activate_interface.part.0.cold+0x88/0x226 net/batman-adv/hard-interface.c:664
batadv_hardif_activate_interface net/batman-adv/hard-interface.c:825 [inline]
batadv_hardif_enable_interface+0xadf/0xba0 net/batman-adv/hard-interface.c:817
batadv_softif_slave_add+0x8a/0x100 net/batman-adv/soft-interface.c:898
do_set_master+0x1c8/0x220 net/core/rtnetlink.c:2321
do_setlink+0x7ec/0x3540 net/core/rtnetlink.c:2455
rtnl_newlink+0xda9/0x15c0 net/core/rtnetlink.c:3077
rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4782
netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2457
netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline]
netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1346
netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1911
sock_sendmsg_nosec net/socket.c:651 [inline]
sock_sendmsg+0xc3/0x120 net/socket.c:661
___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2225
__sys_sendmsg net/socket.c:2263 [inline]
__do_sys_sendmsg net/socket.c:2272 [inline]
__se_sys_sendmsg net/socket.c:2270 [inline]
__x64_sys_sendmsg+0x132/0x220 net/socket.c:2270
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4665f9
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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe2d15ac188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665f9
RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000003
RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80
R13: 00007fff3e5667bf R14: 00007fe2d15ac300 R15: 0000000000022000
----------------
Code disassembly (best guess):
0: 48 89 df mov %rbx,%rdi
3: e8 e4 56 7f f9 callq 0xf97f56ec
8: e9 2e ff ff ff jmpq 0xffffff3b
d: 48 89 df mov %rbx,%rdi
10: e8 d7 56 7f f9 callq 0xf97f56ec
15: eb 82 jmp 0xffffff99
17: 90 nop
18: 90 nop
19: 90 nop
1a: 90 nop
1b: 90 nop
1c: e9 07 00 00 00 jmpq 0x28
21: 0f 00 2d 54 74 4e 00 verw 0x4e7454(%rip) # 0x4e747c
28: fb sti
29: f4 hlt
* 2a: c3 retq <-- trapping instruction
2b: 90 nop
2c: e9 07 00 00 00 jmpq 0x38
31: 0f 00 2d 44 74 4e 00 verw 0x4e7444(%rip) # 0x4e747c
38: f4 hlt
39: c3 retq
3a: 90 nop
3b: 90 nop
3c: 41 56 push %r14
3e: 41 55 push %r13


---
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 27, 2021, 9:54:14 PM12/27/21
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