BUG: soft lockup in br_ip6_multicast_query_expired

7 views
Skip to first unread message

syzbot

unread,
Sep 16, 2021, 9:02:23 AM9/16/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: b172b44fcb17 Linux 4.19.206
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1617578b300000
kernel config: https://syzkaller.appspot.com/x/.config?x=b9ba3521ce0be3cd
dashboard link: https://syzkaller.appspot.com/bug?extid=f1358d82a4dee12ee4df
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+f1358d...@syzkaller.appspotmail.com

netlink: 28 bytes leftover after parsing attributes in process `syz-executor.4'.
netlink: 24 bytes leftover after parsing attributes in process `syz-executor.1'.
watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor.1:17413]
Modules linked in:
irq event stamp: 2796621
hardirqs last enabled at (2796620): [<ffffffff81003ce4>] trace_hardirqs_on_thunk+0x1a/0x1c
hardirqs last disabled at (2796621): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last enabled at (20800): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
softirqs last disabled at (20803): [<ffffffff81393705>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (20803): [<ffffffff81393705>] irq_exit+0x215/0x260 kernel/softirq.c:412
CPU: 0 PID: 17413 Comm: syz-executor.1 Not tainted 4.19.206-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline]
RIP: 0010:kfree+0x123/0x210 mm/slab.c:3823
Code: 89 ea 48 89 ee 4c 89 e7 e8 da ee ff ff f6 c7 02 74 ca e8 20 7e cf ff 48 83 3d 50 4a 59 08 00 0f 84 eb 00 00 00 48 89 df 57 9d <0f> 1f 44 00 00 5b 5d 41 5c 41 5d c3 65 8b 05 9a 48 69 7e 83 f8 07
service_operation: orangefs_mount -- wait timed out; aborting attempt.
RSP: 0018:ffff8880ba007a20 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000007 RBX: 0000000000000286 RCX: 1ffff110069add3f
RDX: 0000000000000000 RSI: ffff888034d6e9d8 RDI: 0000000000000286
RBP: ffff88804087d000 R08: 0000000000400000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88813bff0940
R13: ffffffff8670ad3e R14: 0000000000000000 R15: ffff88804087d0f0
FS: 00007fae74f68700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2f123000 CR3: 000000009c815000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
skb_free_head net/core/skbuff.c:563 [inline]
skb_release_data+0x6de/0x920 net/core/skbuff.c:583
skb_release_all net/core/skbuff.c:640 [inline]
__kfree_skb net/core/skbuff.c:654 [inline]
kfree_skb+0x11a/0x3d0 net/core/skbuff.c:672
br_ip6_multicast_alloc_query net/bridge/br_multicast.c:505 [inline]
br_multicast_alloc_query net/bridge/br_multicast.c:585 [inline]
__br_multicast_send_query+0x2947/0x2dc0 net/bridge/br_multicast.c:941
br_multicast_send_query+0x216/0x3a0 net/bridge/br_multicast.c:988
br_multicast_query_expired net/bridge/br_multicast.c:1942 [inline]
br_ip6_multicast_query_expired+0xdc/0x110 net/bridge/br_multicast.c:1958
call_timer_fn+0x177/0x700 kernel/time/timer.c:1338
expire_timers+0x243/0x4e0 kernel/time/timer.c:1375
__run_timers kernel/time/timer.c:1696 [inline]
run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1709
orangefs_mount: mount request failed with -110
__do_softirq+0x265/0x980 kernel/softirq.c:292
invoke_softirq kernel/softirq.c:372 [inline]
irq_exit+0x215/0x260 kernel/softirq.c:412
exiting_irq arch/x86/include/asm/apic.h:536 [inline]
smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
</IRQ>
RIP: 0010:preempt_schedule_irq+0xa6/0x140 kernel/sched/core.c:3744
Code: 00 00 e8 2d 42 29 f9 e8 38 7c 4f f9 4c 89 e8 48 c1 e8 03 80 3c 18 00 75 69 48 83 3d 6b 48 d9 01 00 74 5b fb 66 0f 1f 44 00 00 <bf> 01 00 00 00 e8 40 d1 ff ff 48 c7 c0 d0 82 f1 89 48 c1 e8 03 80
RSP: 0018:ffff88804bdcf6d0 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff13e305b RBX: dffffc0000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff888034d6e988 RDI: ffff888034d6e984
RBP: ffffed10069adc20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff888034d6e100
R13: ffffffff89f182d8 R14: 0000000000000000 R15: 0000000000000000
retint_kernel+0x1b/0x2d
RIP: 0010:rtnl_get_link+0xcd/0x210 net/core/rtnetlink.c:169
Code: 00 00 e8 66 d0 e7 fa 49 8d 5c ed 00 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 80 3c 02 00 0f 85 32 01 00 00 48 8b 03 <5b> 5d 41 5c 41 5d c3 e8 37 d0 e7 fa be ff ff ff ff 48 c7 c7 60 2c
RSP: 0018:ffff88804bdcf7a8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: ffff8880b2a9c480 RBX: ffff88823b2e8560 RCX: ffffc90008341000
RDX: 1ffff1104765d0ac RSI: ffffffff867ac25a RDI: 0000000000000007
RBP: 0000000000000014 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: ffff88823b2e84c0
R13: ffff88823b2e84c0 R14: ffff88809b594980 R15: 0000000000000000
rtnetlink_rcv_msg+0x2bc/0xb80 net/core/rtnetlink.c:4754
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:2227
__sys_sendmsg net/socket.c:2265 [inline]
__do_sys_sendmsg net/socket.c:2274 [inline]
__se_sys_sendmsg net/socket.c:2272 [inline]
__x64_sys_sendmsg+0x132/0x220 net/socket.c:2272
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:00007fae74f68188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000056c0f0 RCX: 00000000004665f9
RDX: 0000000000000000 RSI: 00000000200002c0 RDI: 0000000000000005
RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c0f0
R13: 00007ffc61c2c06f R14: 00007fae74f68300 R15: 0000000000022000
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 7 Comm: kworker/u4:0 Not tainted 4.19.206-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: netns cleanup_net
RIP: 0010:match_held_lock kernel/locking/lockdep.c:3480 [inline]
RIP: 0010:__lock_is_held+0x94/0x160 kernel/locking/lockdep.c:3728
Code: 8d 7b 22 48 89 f8 48 c1 e8 03 42 0f b6 14 28 48 89 f8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 b5 00 00 00 66 f7 43 22 f0 ff <74> 0f 4c 89 f6 48 89 df e8 af f7 ff ff 85 c0 75 2f 83 c5 01 41 39
RSP: 0018:ffff8880b5a47aa8 EFLAGS: 00000046
RAX: 0000000000000003 RBX: ffff8880b5a36a70 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffff8880b5a36a92
RBP: 0000000000000001 R08: 0000000000000000 R09: 000000000007ffff
R10: 0000000000000004 R11: 0000000000000000 R12: ffff8880b5a36a48
R13: dffffc0000000000 R14: ffffffff89f85fa0 R15: ffff8880b5a361c0
FS: 0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000185c848 CR3: 00000000b34e7000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_is_held_type+0x10d/0x210 kernel/locking/lockdep.c:3946
lock_is_held include/linux/lockdep.h:344 [inline]
___might_sleep+0x1ea/0x2b0 kernel/sched/core.c:6157
inet_twsk_purge+0xeb/0x7c0 net/ipv4/inet_timewait_sock.c:266
ops_exit_list+0xf9/0x150 net/core/net_namespace.c:156
cleanup_net+0x3b4/0x8b0 net/core/net_namespace.c:553
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
----------------
Code disassembly (best guess):
0: 89 ea mov %ebp,%edx
2: 48 89 ee mov %rbp,%rsi
5: 4c 89 e7 mov %r12,%rdi
8: e8 da ee ff ff callq 0xffffeee7
d: f6 c7 02 test $0x2,%bh
10: 74 ca je 0xffffffdc
12: e8 20 7e cf ff callq 0xffcf7e37
17: 48 83 3d 50 4a 59 08 cmpq $0x0,0x8594a50(%rip) # 0x8594a6f
1e: 00
1f: 0f 84 eb 00 00 00 je 0x110
25: 48 89 df mov %rbx,%rdi
28: 57 push %rdi
29: 9d popfq
* 2a: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) <-- trapping instruction
2f: 5b pop %rbx
30: 5d pop %rbp
31: 41 5c pop %r12
33: 41 5d pop %r13
35: c3 retq
36: 65 8b 05 9a 48 69 7e mov %gs:0x7e69489a(%rip),%eax # 0x7e6948d7
3d: 83 f8 07 cmp $0x7,%eax


---
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 20, 2021, 6:45:22 PM12/20/21
to syzkaller...@googlegroups.com
syzbot has found a reproducer for 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=1552dd99b00000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=f1358d82a4dee12ee4df
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=172051cdb00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13c3377db00000

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

IPv6: ADDRCONF(NETDEV_UP): bridge441: link is not ready
IPv6: ADDRCONF(NETDEV_UP): bridge442: link is not ready
IPv6: ADDRCONF(NETDEV_UP): bridge443: link is not ready
IPv6: ADDRCONF(NETDEV_UP): bridge444: link is not ready
watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [ksoftirqd/0:9]
Modules linked in:
irq event stamp: 14098521
hardirqs last enabled at (14098520): [<ffffffff81983520>] kfree+0x110/0x210 mm/slab.c:3823 mm/slab.c:3823
hardirqs last disabled at (14098521): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last enabled at (4709126): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318 kernel/softirq.c:318
softirqs last disabled at (4709131): [<ffffffff81392417>] run_ksoftirqd+0x57/0x110 kernel/softirq.c:653 kernel/softirq.c:653
CPU: 0 PID: 9 Comm: ksoftirqd/0 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline]
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline] mm/slab.c:3823
RIP: 0010:kfree+0x123/0x210 mm/slab.c:3823 mm/slab.c:3823
Code: 89 ea 48 89 ee 4c 89 e7 e8 da ee ff ff f6 c7 02 74 ca e8 20 74 cf ff 48 83 3d 60 4d 59 08 00 0f 84 eb 00 00 00 48 89 df 57 9d <0f> 1f 44 00 00 5b 5d 41 5c 41 5d c3 65 8b 05 ea 4b 69 7e 83 f8 07
RSP: 0018:ffff8880b5a5f8e8 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000007 RBX: 0000000000000286 RCX: 1ffff11016b49962
RDX: 0000000000000000 RSI: ffff8880b5a4caf0 RDI: 0000000000000286
RBP: ffff88803dce6300 R08: 0000000000400000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff88813bff0940
R13: ffffffff8670bf6e R14: 0000000000000000 R15: ffff88803dce63f0
FS: 0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f38d85cd710 CR3: 00000000a12ef000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
skb_free_head net/core/skbuff.c:563 [inline]
skb_free_head net/core/skbuff.c:563 [inline] net/core/skbuff.c:583
skb_release_data+0x6de/0x920 net/core/skbuff.c:583 net/core/skbuff.c:583
skb_release_all net/core/skbuff.c:640 [inline]
__kfree_skb net/core/skbuff.c:654 [inline]
skb_release_all net/core/skbuff.c:640 [inline] net/core/skbuff.c:672
__kfree_skb net/core/skbuff.c:654 [inline] net/core/skbuff.c:672
kfree_skb+0x11a/0x3d0 net/core/skbuff.c:672 net/core/skbuff.c:672
br_ip6_multicast_alloc_query net/bridge/br_multicast.c:505 [inline]
br_multicast_alloc_query net/bridge/br_multicast.c:585 [inline]
br_ip6_multicast_alloc_query net/bridge/br_multicast.c:505 [inline] net/bridge/br_multicast.c:941
br_multicast_alloc_query net/bridge/br_multicast.c:585 [inline] net/bridge/br_multicast.c:941
__br_multicast_send_query+0x2947/0x2dc0 net/bridge/br_multicast.c:941 net/bridge/br_multicast.c:941
br_multicast_send_query+0x216/0x3a0 net/bridge/br_multicast.c:988 net/bridge/br_multicast.c:988
br_multicast_query_expired net/bridge/br_multicast.c:1942 [inline]
br_multicast_query_expired net/bridge/br_multicast.c:1942 [inline] net/bridge/br_multicast.c:1958
br_ip6_multicast_query_expired+0xdc/0x110 net/bridge/br_multicast.c:1958 net/bridge/br_multicast.c:1958
call_timer_fn+0x177/0x700 kernel/time/timer.c:1338 kernel/time/timer.c:1338
expire_timers+0x243/0x4e0 kernel/time/timer.c:1375 kernel/time/timer.c:1375
__run_timers kernel/time/timer.c:1696 [inline]
__run_timers kernel/time/timer.c:1696 [inline] kernel/time/timer.c:1709
run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1709 kernel/time/timer.c:1709
__do_softirq+0x265/0x980 kernel/softirq.c:292 kernel/softirq.c:292
run_ksoftirqd+0x57/0x110 kernel/softirq.c:653 kernel/softirq.c:653
smpboot_thread_fn+0x655/0x9e0 kernel/smpboot.c:164 kernel/smpboot.c:164
kthread+0x33f/0x460 kernel/kthread.c:259 kernel/kthread.c:259
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 arch/x86/entry/entry_64.S:415
----------------
Code disassembly (best guess):
0: 89 ea mov %ebp,%edx
2: 48 89 ee mov %rbp,%rsi
5: 4c 89 e7 mov %r12,%rdi
8: e8 da ee ff ff callq 0xffffeee7
d: f6 c7 02 test $0x2,%bh
10: 74 ca je 0xffffffdc
12: e8 20 74 cf ff callq 0xffcf7437
17: 48 83 3d 60 4d 59 08 cmpq $0x0,0x8594d60(%rip) # 0x8594d7f
1e: 00
1f: 0f 84 eb 00 00 00 je 0x110
25: 48 89 df mov %rbx,%rdi
28: 57 push %rdi
29: 9d popfq
* 2a: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) <-- trapping instruction
2f: 5b pop %rbx
30: 5d pop %rbp
31: 41 5c pop %r12
33: 41 5d pop %r13
35: c3 retq
36: 65 8b 05 ea 4b 69 7e mov %gs:0x7e694bea(%rip),%eax # 0x7e694c27
3d: 83 f8 07 cmp $0x7,%eax
----------------
Code disassembly (best guess):
0: 89 ea mov %ebp,%edx
2: 48 89 ee mov %rbp,%rsi
5: 4c 89 e7 mov %r12,%rdi
8: e8 da ee ff ff callq 0xffffeee7
d: f6 c7 02 test $0x2,%bh
10: 74 ca je 0xffffffdc
12: e8 20 74 cf ff callq 0xffcf7437
17: 48 83 3d 60 4d 59 08 cmpq $0x0,0x8594d60(%rip) # 0x8594d7f
1e: 00
1f: 0f 84 eb 00 00 00 je 0x110
25: 48 89 df mov %rbx,%rdi
28: 57 push %rdi
29: 9d popfq
* 2a: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) <-- trapping instruction
2f: 5b pop %rbx
30: 5d pop %rbp
31: 41 5c pop %r12
33: 41 5d pop %r13
35: c3 retq
36: 65 8b 05 ea 4b 69 7e mov %gs:0x7e694bea(%rip),%eax # 0x7e694c27
Reply all
Reply to author
Forward
0 new messages