syzbot


BUG: soft lockup in hci_sock_sendmsg

Status: auto-closed as invalid on 2021/07/29 20:24
Reported-by: syzbot+07e9ffb275ff31c05ed9@syzkaller.appspotmail.com
First crash: 1129d, last: 1121d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 BUG: soft lockup in hci_sock_sendmsg (2) C 4 424d 723d 0/1 upstream: reported C repro on 2022/05/04 08:18

Sample crash report:
RDX: 000000000000000d RSI: 00000000200001c0 RDI: 0000000000000004
RBP: 00007f3c250be1d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffd5e98e6cf R14: 00007f3c250be300 R15: 0000000000022000
watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor.5:5076]
Modules linked in:
irq event stamp: 54564
hardirqs last  enabled at (54563): [<ffffffff8122f7db>] kvm_wait arch/x86/kernel/kvm.c:600 [inline]
hardirqs last  enabled at (54563): [<ffffffff8122f7db>] kvm_wait+0x14b/0x240 arch/x86/kernel/kvm.c:580
hardirqs last disabled at (54564): [<ffffffff874018ae>] apic_timer_interrupt+0x8e/0xa0 arch/x86/entry/entry_64.S:793
softirqs last  enabled at (54560): [<ffffffff8760068b>] __do_softirq+0x68b/0x9ff kernel/softirq.c:314
softirqs last disabled at (54535): [<ffffffff81320ae3>] invoke_softirq kernel/softirq.c:368 [inline]
softirqs last disabled at (54535): [<ffffffff81320ae3>] irq_exit+0x193/0x240 kernel/softirq.c:409
CPU: 0 PID: 5076 Comm: syz-executor.5 Not tainted 4.14.228-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880a49c64c0 task.stack: ffff888046990000
RIP: 0010:native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:61
RSP: 0018:ffff888046997960 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff10
RAX: 1ffffffff11e125c RBX: ffffffff89dd42ac RCX: 1ffff11014938dc1
RDX: dffffc0000000000 RSI: ffff8880a49c6de8 RDI: ffff8880a49c6d44
RBP: 0000000000000003 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000286
R13: dffffc0000000000 R14: ffffffff89dd42ad R15: ffffed10174855d8
FS:  00007f3c250be700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3c250bdf78 CR3: 00000000a5d4e000 CR4: 00000000001426f0
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:261
 hci_send_monitor_ctrl_event+0x3dd/0x500 net/bluetooth/hci_sock.c:391
 mgmt_send_event+0x2b3/0x330 net/bluetooth/mgmt_util.c:86
 mgmt_event net/bluetooth/mgmt.c:267 [inline]
 unblock_device+0x135/0x1f0 net/bluetooth/mgmt.c:3837
 hci_mgmt_cmd net/bluetooth/hci_sock.c:1573 [inline]
 hci_sock_sendmsg+0x1723/0x1c80 net/bluetooth/hci_sock.c:1708
 sock_sendmsg_nosec net/socket.c:646 [inline]
 sock_sendmsg+0xb5/0x100 net/socket.c:656
 sock_write_iter+0x22c/0x370 net/socket.c:925
 call_write_iter include/linux/fs.h:1778 [inline]
 new_sync_write fs/read_write.c:469 [inline]
 __vfs_write+0x44c/0x630 fs/read_write.c:482
 vfs_write+0x17f/0x4d0 fs/read_write.c:544
 SYSC_write fs/read_write.c:590 [inline]
 SyS_write+0xf2/0x210 fs/read_write.c:582
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x466459
RSP: 002b:00007f3c250be188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459
RDX: 000000000000000d RSI: 00000000200001c0 RDI: 0000000000000004
RBP: 00007f3c250be1d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002
R13: 00007ffd5e98e6cf R14: 00007f3c250be300 R15: 0000000000022000
Code: 71 5c fa e9 4f ff ff ff 48 89 ef e8 3d 71 5c fa eb 93 90 90 90 90 90 90 90 90 90 90 90 e9 07 00 00 00 0f 00 2d 54 48 65 00 fb f4 <c3> 90 e9 07 00 00 00 0f 00 2d 44 48 65 00 f4 c3 90 90 41 55 41 
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 5078 Comm: syz-executor.4 Not tainted 4.14.228-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff88804ae0e380 task.stack: ffff8880252e0000
RIP: 0010:__read_once_size include/linux/compiler.h:183 [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:ffff8880252e7d38 EFLAGS: 00000206
RAX: 0000000000000101 RBX: ffffffff89dd42a8 RCX: 00000000000062aa
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffffff89dd42a8
RBP: ffffffff89dd42ac R08: ffffffff8b9bf010 R09: 00000000000405a1
R10: ffff88804ae0ec30 R11: ffff88804ae0e380 R12: 0000000000000003
R13: fffffbfff13ba855 R14: 00000000000000ff R15: ffffffff88639f20
FS:  00007f8f4421d700(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000056c000 CR3: 0000000095866000 CR4: 00000000001426e0
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:2017
 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:0x466459
RSP: 002b:00007f8f4421d128 EFLAGS: 00000246 ORIG_RAX: 0000000000000029
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459
RDX: 0000000000000001 RSI: 0000000000000003 RDI: 000000000000001f
RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffff9f7289f R14: 00007f8f4421d300 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 

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/31 20:23 linux-4.14.y bd634aa64163 6a81331a .config console log report info ci2-linux-4-14 BUG: soft lockup in hci_sock_sendmsg
2021/03/23 14:29 linux-4.14.y cb83ddcd5332 8092f30d .config console log report info ci2-linux-4-14 BUG: soft lockup in hci_sock_sendmsg
* Struck through repros no longer work on HEAD.