Bluetooth: unknown link type 28 BUG: sleeping function called from invalid context at net/core/sock.c:3252 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3580, name: kworker/u5:5 6 locks held by kworker/u5:5/3580: #0: ffff88807d2cd938 ((wq_completion)hci3#2){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90002ee7d20 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffff88801f7dc078 (&hdev->lock){+.+.}-{3:3}, at: hci_sync_conn_complete_evt+0xab/0x9b0 net/bluetooth/hci_event.c:4471 #3: ffffffff8db7ac68 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_connect_cfm include/net/bluetooth/hci_core.h:1507 [inline] #3: ffffffff8db7ac68 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_sync_conn_complete_evt+0x45f/0x9b0 net/bluetooth/hci_event.c:4551 #4: ffff888078106e20 (&conn->lock#2){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:363 [inline] #4: ffff888078106e20 (&conn->lock#2){+.+.}-{2:2}, at: sco_conn_ready net/bluetooth/sco.c:1116 [inline] #4: ffff888078106e20 (&conn->lock#2){+.+.}-{2:2}, at: sco_connect_cfm+0x27c/0xad0 net/bluetooth/sco.c:1201 #5: ffff888078db2120 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1676 [inline] #5: ffff888078db2120 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: sco_conn_ready net/bluetooth/sco.c:1129 [inline] #5: ffff888078db2120 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: sco_connect_cfm+0x456/0xad0 net/bluetooth/sco.c:1201 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 3580 Comm: kworker/u5:5 Not tainted 5.15.166-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Workqueue: hci3 hci_rx_work Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 ___might_sleep+0x547/0x6a0 kernel/sched/core.c:9636 lock_sock_nested+0x5b/0x100 net/core/sock.c:3252 lock_sock include/net/sock.h:1676 [inline] sco_conn_ready net/bluetooth/sco.c:1129 [inline] sco_connect_cfm+0x456/0xad0 net/bluetooth/sco.c:1201 hci_connect_cfm include/net/bluetooth/hci_core.h:1510 [inline] hci_sync_conn_complete_evt+0x4ce/0x9b0 net/bluetooth/hci_event.c:4551 hci_event_packet+0xa12/0x1550 net/bluetooth/hci_event.c:6483 hci_rx_work+0x232/0x990 net/bluetooth/hci_core.c:5155 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287