------------[ cut here ]------------ workqueue: cannot queue hci_cmd_timeout on wq hci0 WARNING: kernel/workqueue.c:2298 at __queue_work+0xd3f/0x1040 kernel/workqueue.c:2296, CPU#0: syz.0.0/5334 Modules linked in: CPU: 0 UID: 0 PID: 5334 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+0xd67/0x1040 kernel/workqueue.c:2296 Code: a6 0e 49 8d 7d 18 48 89 f8 48 c1 e8 03 42 80 3c 20 00 74 05 e8 ea 78 a5 00 49 8b 75 18 49 81 c7 70 01 00 00 4c 89 f7 4c 89 fa <67> 48 0f b9 3a 4c 89 e8 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 ef RSP: 0018:ffffc90000007bd8 EFLAGS: 00010082 RAX: 1ffff1100255714e RBX: 0000000000000008 RCX: ffff88801288ca80 RDX: ffff888012e33970 RSI: ffffffff8a9c76a0 RDI: ffffffff90334bb0 RBP: 0000000000000100 R08: ffffffff90304cf7 R09: 1ffffffff206099e R10: dffffc0000000000 R11: ffffffff818d37e0 R12: dffffc0000000000 R13: ffff888012ab8a58 R14: ffffffff90334bb0 R15: ffff888012e33970 FS: 00007eff810e46c0(0000) GS:ffff88808c891000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000564075847660 CR3: 0000000011d7d000 CR4: 0000000000352ef0 Call Trace: call_timer_fn+0x192/0x5e0 kernel/time/timer.c:1748 expire_timers kernel/time/timer.c:1794 [inline] __run_timers kernel/time/timer.c:2374 [inline] __run_timer_base+0x67e/0x8b0 kernel/time/timer.c:2386 run_timer_base kernel/time/timer.c:2395 [inline] run_timer_softirq+0xb7/0x170 kernel/time/timer.c:2405 handle_softirqs+0x22a/0x840 kernel/softirq.c:622 __do_softirq kernel/softirq.c:656 [inline] invoke_softirq kernel/softirq.c:496 [inline] __irq_exit_rcu+0xca/0x220 kernel/softirq.c:735 irq_exit_rcu+0x9/0x30 kernel/softirq.c:752 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1061 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1061 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697 RIP: 0010:__flush_workqueue+0xf3c/0x14f0 kernel/workqueue.c:-1 Code: 48 85 db 74 16 e8 e4 59 38 00 48 89 df e8 0c 96 1e 0a eb 0c e8 d5 59 38 00 eb 05 e8 ce 59 38 00 49 bd 00 00 00 00 00 fc ff df <48> 8b 84 24 90 00 00 00 42 80 3c 28 00 48 8b 7c 24 58 74 0a e8 ab RSP: 0018:ffffc90007257980 EFLAGS: 00000287 RAX: ffffffff818d68d5 RBX: ffff888012e338c0 RCX: 0000000000100000 RDX: ffffc90020802000 RSI: 000000000000055e RDI: 000000000000055f RBP: ffffc90007257b30 R08: ffffffff90304cf7 R09: 1ffffffff206099e R10: dffffc0000000000 R11: fffffbfff206099f R12: ffff888012e33800 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000 drain_workqueue+0xd3/0x390 kernel/workqueue.c:4235 hci_dev_close_sync+0x66b/0x1150 net/bluetooth/hci_sync.c:5364 hci_dev_do_close net/bluetooth/hci_core.c:502 [inline] hci_dev_close+0x108/0x260 net/bluetooth/hci_core.c:527 sock_do_ioctl+0x101/0x320 net/socket.c:1313 sock_ioctl+0x5c6/0x7f0 net/socket.c:1434 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 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:0x7eff8019ce59 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:00007eff810e3fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007eff80415fa0 RCX: 00007eff8019ce59 RDX: 0000000000000000 RSI: 00000000400448ca RDI: 0000000000000004 RBP: 00007eff80232d6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007eff80416038 R14: 00007eff80415fa0 R15: 00007fff587a13f8 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 49 8d 7d 18 lea 0x18(%r13),%rdi 4: 48 89 f8 mov %rdi,%rax 7: 48 c1 e8 03 shr $0x3,%rax b: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) 10: 74 05 je 0x17 12: e8 ea 78 a5 00 call 0xa57901 17: 49 8b 75 18 mov 0x18(%r13),%rsi 1b: 49 81 c7 70 01 00 00 add $0x170,%r15 22: 4c 89 f7 mov %r14,%rdi 25: 4c 89 fa mov %r15,%rdx * 28: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2d: 4c 89 e8 mov %r13,%rax 30: 48 c1 e8 03 shr $0x3,%rax 34: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) 39: 74 08 je 0x43 3b: 4c 89 ef mov %r13,%rdi