BUG: soft lockup in bind

14 views
Skip to first unread message

syzbot

unread,
Dec 15, 2021, 11:15:27 AM12/15/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 9dfbac0e6b86 Linux 4.14.258
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13473f19b00000
kernel config: https://syzkaller.appspot.com/x/.config?x=9cac3dc48a267418
dashboard link: https://syzkaller.appspot.com/bug?extid=6a918ab4e4ea0ed8ab85
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+6a918a...@syzkaller.appspotmail.com

RDX: 0000000000000032 RSI: 0000000020000040 RDI: 0000000000000004
RBP: 00007f92e00581d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fff34b1256f R14: 00007f92e0058300 R15: 0000000000022000
watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor.5:28700]
Modules linked in:
irq event stamp: 11400
hardirqs last enabled at (11399): [<ffffffff812307db>] kvm_wait arch/x86/kernel/kvm.c:600 [inline]
hardirqs last enabled at (11399): [<ffffffff812307db>] kvm_wait+0x14b/0x240 arch/x86/kernel/kvm.c:580
hardirqs last disabled at (11400): [<ffffffff874018ae>] apic_timer_interrupt+0x8e/0xa0 arch/x86/entry/entry_64.S:793
softirqs last enabled at (388): [<ffffffff8760068b>] __do_softirq+0x68b/0x9ff kernel/softirq.c:314
softirqs last disabled at (287): [<ffffffff81321d13>] invoke_softirq kernel/softirq.c:368 [inline]
softirqs last disabled at (287): [<ffffffff81321d13>] irq_exit+0x193/0x240 kernel/softirq.c:409
CPU: 0 PID: 28700 Comm: syz-executor.5 Not tainted 4.14.258-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff888095710000 task.stack: ffff888052ec8000
RIP: 0010:native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:61
RSP: 0018:ffff888052ecfb20 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff10
RAX: 1ffffffff11e127c RBX: ffffffff89dd65ec RCX: 1ffff11012ae211f
RDX: dffffc0000000000 RSI: ffff8880957108d8 RDI: ffff888095710884
RBP: 0000000000000003 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000286
R13: dffffc0000000000 R14: ffffffff89dd65ed R15: ffffed10174869e8
FS: 00007f92e0058700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f92e0057ff8 CR3: 000000004918a000 CR4: 00000000003406f0
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:600 [inline]
kvm_wait+0x179/0x240 arch/x86/kernel/kvm.c:580
pv_wait arch/x86/include/asm/paravirt.h:679 [inline]
pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:447 [inline]
__pv_queued_spin_lock_slowpath+0x722/0x910 kernel/locking/qspinlock.c:465
pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:669 [inline]
queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:52 [inline]
queued_spin_lock include/asm-generic/qspinlock.h:90 [inline]
queued_read_lock_slowpath+0x150/0x190 kernel/locking/qrwlock.c:90
hci_send_to_channel+0x3c/0x200 net/bluetooth/hci_sock.c:272
hci_send_monitor_ctrl_event+0x3dd/0x500 net/bluetooth/hci_sock.c:402
mgmt_send_event+0x2b3/0x330 net/bluetooth/mgmt_util.c:86
mgmt_index_event net/bluetooth/mgmt.c:256 [inline]
mgmt_index_removed+0x200/0x240 net/bluetooth/mgmt.c:6600
hci_sock_bind+0xe00/0x12b0 net/bluetooth/hci_sock.c:1186
SYSC_bind net/socket.c:1489 [inline]
SyS_bind+0x174/0x1f0 net/socket.c:1475
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f92e16e2e99
RSP: 002b:00007f92e0058168 EFLAGS: 00000246 ORIG_RAX: 0000000000000031
RAX: ffffffffffffffda RBX: 00007f92e17f5f60 RCX: 00007f92e16e2e99
RDX: 0000000000000032 RSI: 0000000020000040 RDI: 0000000000000004
RBP: 00007f92e00581d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fff34b1256f R14: 00007f92e0058300 R15: 0000000000022000
Code: ff 5a fa e9 4f ff ff ff 48 89 ef e8 3d ff 5a fa eb 93 90 90 90 90 90 90 90 90 90 90 90 e9 07 00 00 00 0f 00 2d 04 99 63 00 fb f4 <c3> 90 e9 07 00 00 00 0f 00 2d f4 98 63 00 f4 c3 90 90 41 55 41
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 28701 Comm: syz-executor.4 Not tainted 4.14.258-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff88804f28a040 task.stack: ffff888097740000
RIP: 0010:__read_once_size include/linux/compiler.h:185 [inline]
RIP: 0010:atomic_read arch/x86/include/asm/atomic.h:27 [inline]
RIP: 0010:queued_write_lock_slowpath+0xcb/0x1d0 kernel/locking/qrwlock.c:139
RSP: 0018:ffff888097747d38 EFLAGS: 00000206
RAX: 0000000000000101 RBX: ffffffff89dd65e8 RCX: 00000000000046f5
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffffff89dd65e8
RBP: ffffffff89dd65ec R08: ffffffff8b9c1268 R09: 000000000004058f
R10: ffff88804f28a8f0 R11: ffff88804f28a040 R12: 0000000000000003
R13: fffffbfff13bacbd R14: 00000000000000ff R15: ffffffff8863c0a0
FS: 00007fdbc1a30700(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f346749a058 CR3: 0000000057db7000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
queued_write_lock include/asm-generic/qrwlock.h:134 [inline]
do_raw_write_lock+0xc2/0x1d0 kernel/locking/spinlock_debug.c:203
bt_sock_link+0x1f/0x120 net/bluetooth/af_bluetooth.c:143
hci_sock_create+0x15c/0x1d0 net/bluetooth/hci_sock.c:2034
bt_sock_create+0x13b/0x280 net/bluetooth/af_bluetooth.c:130
__sock_create+0x303/0x620 net/socket.c:1275
sock_create net/socket.c:1315 [inline]
SYSC_socket net/socket.c:1345 [inline]
SyS_socket+0xd1/0x1b0 net/socket.c:1325
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7fdbc30bae99
RSP: 002b:00007fdbc1a30108 EFLAGS: 00000246 ORIG_RAX: 0000000000000029
RAX: ffffffffffffffda RBX: 00007fdbc31cdf60 RCX: 00007fdbc30bae99
RDX: 0000000000000001 RSI: 0000000000000003 RDI: 000000000000001f
RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffec7d1c0ff R14: 00007fdbc1a30300 R15: 0000000000022000
Code: 75 dc 49 89 dd 49 89 dc 41 be ff 00 00 00 49 c1 ed 03 41 83 e4 07 48 b8 00 00 00 00 00 fc ff df 49 01 c5 41 83 c4 03 eb 02 f3 90 <41> 0f b6 45 00 41 38 c4 7c 08 84 c0 0f 85 9e 00 00 00 8b 03 83
----------------
Code disassembly (best guess):
0: ff 5a fa lcall *-0x6(%rdx)
3: e9 4f ff ff ff jmpq 0xffffff57
8: 48 89 ef mov %rbp,%rdi
b: e8 3d ff 5a fa callq 0xfa5aff4d
10: eb 93 jmp 0xffffffa5
12: 90 nop
13: 90 nop
14: 90 nop
15: 90 nop
16: 90 nop
17: 90 nop
18: 90 nop
19: 90 nop
1a: 90 nop
1b: 90 nop
1c: 90 nop
1d: e9 07 00 00 00 jmpq 0x29
22: 0f 00 2d 04 99 63 00 verw 0x639904(%rip) # 0x63992d
29: fb sti
2a: f4 hlt
* 2b: c3 retq <-- trapping instruction
2c: 90 nop
2d: e9 07 00 00 00 jmpq 0x39
32: 0f 00 2d f4 98 63 00 verw 0x6398f4(%rip) # 0x63992d
39: f4 hlt
3a: c3 retq
3b: 90 nop
3c: 90 nop
3d: 41 55 push %r13
3f: 41 rex.B


---
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,
Aug 29, 2022, 10:09:21 AM8/29/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