BUG: sleeping function called from invalid context at net/core/sock.c:3664 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 55, name: kworker/u9:0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 6 locks held by kworker/u9:0/55: #0: ffff88802ad91948 ((wq_completion)hci4#2){+.+.}-{0:0}, at: process_one_work+0x1293/0x1ba0 kernel/workqueue.c:3213 #1: ffffc9000120fd18 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_one_work+0x921/0x1ba0 kernel/workqueue.c:3214 #2: ffff88807ea74078 (&hdev->lock){+.+.}-{4:4}, at: hci_sync_conn_complete_evt+0x118/0x9f0 net/bluetooth/hci_event.c:4938 #3: ffffffff90165608 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_connect_cfm include/net/bluetooth/hci_core.h:2026 [inline] #3: ffffffff90165608 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_sync_conn_complete_evt+0x32d/0x9f0 net/bluetooth/hci_event.c:5021 #4: ffff88805c2bdc20 (&conn->lock#3){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline] #4: ffff88805c2bdc20 (&conn->lock#3){+.+.}-{3:3}, at: sco_conn_ready net/bluetooth/sco.c:1336 [inline] #4: ffff88805c2bdc20 (&conn->lock#3){+.+.}-{3:3}, at: sco_connect_cfm+0x2d6/0xd80 net/bluetooth/sco.c:1422 #5: ffff88807f4ca258 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1624 [inline] #5: ffff88807f4ca258 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: sco_conn_ready net/bluetooth/sco.c:1349 [inline] #5: ffff88807f4ca258 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: sco_connect_cfm+0x3f3/0xd80 net/bluetooth/sco.c:1422 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 UID: 0 PID: 55 Comm: kworker/u9:0 Not tainted 6.14.0-rc6-syzkaller-00244-g31d7109a19f6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: hci4 hci_rx_work Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:120 __might_resched+0x3c0/0x5e0 kernel/sched/core.c:8767 lock_sock_nested+0x4b/0xf0 net/core/sock.c:3664 lock_sock include/net/sock.h:1624 [inline] sco_conn_ready net/bluetooth/sco.c:1349 [inline] sco_connect_cfm+0x3f3/0xd80 net/bluetooth/sco.c:1422 hci_connect_cfm include/net/bluetooth/hci_core.h:2029 [inline] hci_sync_conn_complete_evt+0x398/0x9f0 net/bluetooth/hci_event.c:5021 hci_event_func net/bluetooth/hci_event.c:7480 [inline] hci_event_packet+0x9eb/0x1180 net/bluetooth/hci_event.c:7532 hci_rx_work+0x2c5/0x16b0 net/bluetooth/hci_core.c:4019 process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x6c8/0xf00 kernel/workqueue.c:3400 kthread+0x3af/0x750 kernel/kthread.c:464 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Bluetooth: hci4: command 0x0405 tx timeout