Bluetooth: MGMT ver 1.23 ------------[ cut here ]------------ workqueue: cannot queue hci_cmd_work on wq hci0 WARNING: kernel/workqueue.c:2306 at __queue_work+0xd4a/0x10a0 kernel/workqueue.c:2305, CPU#0: syz.0.0/5332 Modules linked in: CPU: 0 UID: 0 PID: 5332 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:__queue_work+0xd66/0x10a0 kernel/workqueue.c:2305 Code: 49 81 c7 70 01 00 00 4c 8d 35 36 8c cd 0e 48 89 f8 48 c1 e8 03 80 3c 18 00 74 05 e8 94 62 a8 00 49 8b 75 18 4c 89 f7 4c 89 fa <67> 48 0f b9 3a 4c 89 e8 48 c1 e8 03 80 3c 18 00 74 08 4c 89 ef e8 RSP: 0018:ffffc9000f91f778 EFLAGS: 00010046 RAX: 1ffff1100256a981 RBX: dffffc0000000000 RCX: ffff88801ae80000 RDX: ffff8880125e1970 RSI: ffffffff8ac37fe0 RDI: ffffffff905ad690 RBP: 0000000000000000 R08: ffff888012b54bf7 R09: 1ffff1100256a97e R10: dffffc0000000000 R11: ffffed100256a97f R12: 0000000000000008 R13: ffff888012b54bf0 R14: ffffffff905ad690 R15: ffff8880125e1970 FS: 00007fd26484f6c0(0000) GS:ffff88808c549000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055657bb754b0 CR3: 0000000012b00000 CR4: 0000000000352ef0 Call Trace: queue_work_on+0x106/0x1d0 kernel/workqueue.c:2452 queue_work include/linux/workqueue.h:699 [inline] hci_send_cmd+0xb7/0x1a0 net/bluetooth/hci_core.c:3073 set_link_security+0x5b1/0x770 net/bluetooth/mgmt.c:1931 hci_mgmt_cmd+0xa2c/0xfc0 net/bluetooth/hci_sock.c:1719 hci_sock_sendmsg+0x6e1/0xf50 net/bluetooth/hci_sock.c:1839 sock_sendmsg_nosec+0x13a/0x180 net/socket.c:775 __sock_sendmsg net/socket.c:790 [inline] sock_write_iter+0x2de/0x3e0 net/socket.c:1241 new_sync_write fs/read_write.c:595 [inline] vfs_write+0x612/0xba0 fs/read_write.c:687 ksys_write+0x150/0x270 fs/read_write.c:739 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd26399de99 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd26484efe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fd263c26090 RCX: 00007fd26399de99 RDX: 0000000000000007 RSI: 0000200000000000 RDI: 0000000000000006 RBP: 00007fd263a33eaf R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fd263c26128 R14: 00007fd263c26090 R15: 00007ffefa991058 ---------------- Code disassembly (best guess): 0: 49 81 c7 70 01 00 00 add $0x170,%r15 7: 4c 8d 35 36 8c cd 0e lea 0xecd8c36(%rip),%r14 # 0xecd8c44 e: 48 89 f8 mov %rdi,%rax 11: 48 c1 e8 03 shr $0x3,%rax 15: 80 3c 18 00 cmpb $0x0,(%rax,%rbx,1) 19: 74 05 je 0x20 1b: e8 94 62 a8 00 call 0xa862b4 20: 49 8b 75 18 mov 0x18(%r13),%rsi 24: 4c 89 f7 mov %r14,%rdi 27: 4c 89 fa mov %r15,%rdx * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: 4c 89 e8 mov %r13,%rax 32: 48 c1 e8 03 shr $0x3,%rax 36: 80 3c 18 00 cmpb $0x0,(%rax,%rbx,1) 3a: 74 08 je 0x44 3c: 4c 89 ef mov %r13,%rdi 3f: e8 .byte 0xe8