Bluetooth: Wrong link type (-22) BUG: sleeping function called from invalid context at net/core/sock.c:3487 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 48, name: kworker/u5:0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 6 locks held by kworker/u5:0/48: #0: ffff88807b3be938 ((wq_completion)hci2#2){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #1: ffffc90000b97d20 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 kernel/workqueue.c:2267 #2: ffff888026864078 (&hdev->lock){+.+.}-{3:3}, at: hci_sync_conn_complete_evt+0xaa/0xac0 net/bluetooth/hci_event.c:5021 #3: ffffffff8e3f0f48 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_connect_cfm include/net/bluetooth/hci_core.h:1790 [inline] #3: ffffffff8e3f0f48 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_sync_conn_complete_evt+0x4d5/0xac0 net/bluetooth/hci_event.c:5107 #4: ffff88801fa9fe20 (&conn->lock#2){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #4: ffff88801fa9fe20 (&conn->lock#2){+.+.}-{2:2}, at: sco_conn_ready net/bluetooth/sco.c:1278 [inline] #4: ffff88801fa9fe20 (&conn->lock#2){+.+.}-{2:2}, at: sco_connect_cfm+0x279/0xb10 net/bluetooth/sco.c:1363 #5: ffff88807b942130 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1748 [inline] #5: ffff88807b942130 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: sco_conn_ready net/bluetooth/sco.c:1291 [inline] #5: ffff88807b942130 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: sco_connect_cfm+0x450/0xb10 net/bluetooth/sco.c:1363 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 48 Comm: kworker/u5:0 Not tainted 6.1.100-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Workqueue: hci2 hci_rx_work Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 __might_resched+0x5cb/0x780 kernel/sched/core.c:9945 lock_sock_nested+0x59/0x100 net/core/sock.c:3487 lock_sock include/net/sock.h:1748 [inline] sco_conn_ready net/bluetooth/sco.c:1291 [inline] sco_connect_cfm+0x450/0xb10 net/bluetooth/sco.c:1363 hci_connect_cfm include/net/bluetooth/hci_core.h:1793 [inline] hci_sync_conn_complete_evt+0x54b/0xac0 net/bluetooth/hci_event.c:5107 hci_event_func net/bluetooth/hci_event.c:7539 [inline] hci_event_packet+0xa9d/0x1510 net/bluetooth/hci_event.c:7591 hci_rx_work+0x3cd/0xce0 net/bluetooth/hci_core.c:4129 process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292 worker_thread+0xa47/0x1200 kernel/workqueue.c:2439 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Bluetooth: hci2: command 0x0406 tx timeout Bluetooth: hci3: hardware error 0x00 Bluetooth: hci3: Opcode 0x0c03 failed: -110