BUG: sleeping function called from invalid context at net/core/sock.c:3619 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5832, name: kworker/u9:3 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 6 locks held by kworker/u9:3/5832: #0: ffff888027a6a148 ((wq_completion)hci0#2){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff888027a6a148 ((wq_completion)hci0#2){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1850 kernel/workqueue.c:3310 #1: ffffc90004207d00 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc90004207d00 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1850 kernel/workqueue.c:3310 #2: ffff88807c140078 (&hdev->lock){+.+.}-{3:3}, at: hci_sync_conn_complete_evt+0xb1/0xaa0 net/bluetooth/hci_event.c:4926 #3: ffffffff8fe2e068 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_connect_cfm include/net/bluetooth/hci_core.h:1957 [inline] #3: ffffffff8fe2e068 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_sync_conn_complete_evt+0x532/0xaa0 net/bluetooth/hci_event.c:5009 #4: ffff88802fa23e20 (&conn->lock#2){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #4: ffff88802fa23e20 (&conn->lock#2){+.+.}-{2:2}, at: sco_conn_ready net/bluetooth/sco.c:1283 [inline] #4: ffff88802fa23e20 (&conn->lock#2){+.+.}-{2:2}, at: sco_connect_cfm+0x28a/0xb40 net/bluetooth/sco.c:1368 #5: ffff88805f90e258 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1611 [inline] #5: ffff88805f90e258 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: sco_conn_ready net/bluetooth/sco.c:1296 [inline] #5: ffff88805f90e258 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: sco_connect_cfm+0x461/0xb40 net/bluetooth/sco.c:1368 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 UID: 0 PID: 5832 Comm: kworker/u9:3 Not tainted 6.12.0-rc7-syzkaller-00212-g4a5df3796467 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Workqueue: hci0 hci_rx_work Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 __might_resched+0x5d4/0x780 kernel/sched/core.c:8656 lock_sock_nested+0x5d/0x100 net/core/sock.c:3619 lock_sock include/net/sock.h:1611 [inline] sco_conn_ready net/bluetooth/sco.c:1296 [inline] sco_connect_cfm+0x461/0xb40 net/bluetooth/sco.c:1368 hci_connect_cfm include/net/bluetooth/hci_core.h:1960 [inline] hci_sync_conn_complete_evt+0x5ab/0xaa0 net/bluetooth/hci_event.c:5009 hci_event_func net/bluetooth/hci_event.c:7443 [inline] hci_event_packet+0xac2/0x1540 net/bluetooth/hci_event.c:7495 hci_rx_work+0x3e8/0xca0 net/bluetooth/hci_core.c:4029 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Bluetooth: hci0: command 0x0406 tx timeout