BUG: sleeping function called from invalid context at net/core/sock.c:3619 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 54, name: kworker/u9:0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 5 locks held by kworker/u9:0/54: #0: ffff88802d6e8948 ((wq_completion)hci2#2){+.+.}-{0:0}, at: process_one_work+0x129b/0x1ba0 kernel/workqueue.c:3204 #1: ffffc90000bf7d80 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_one_work+0x921/0x1ba0 kernel/workqueue.c:3205 #2: ffffffff90158728 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_connect_cfm include/net/bluetooth/hci_core.h:1957 [inline] #2: ffffffff90158728 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_conn_request_evt+0x763/0xb40 net/bluetooth/hci_event.c:3328 #3: ffff88807c63c820 (&conn->lock#2){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline] #3: ffff88807c63c820 (&conn->lock#2){+.+.}-{3:3}, at: sco_conn_ready net/bluetooth/sco.c:1283 [inline] #3: ffff88807c63c820 (&conn->lock#2){+.+.}-{3:3}, at: sco_connect_cfm+0x2d1/0xc10 net/bluetooth/sco.c:1368 #4: ffff88807cde6258 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1611 [inline] #4: ffff88807cde6258 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: sco_conn_ready net/bluetooth/sco.c:1296 [inline] #4: ffff88807cde6258 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: sco_connect_cfm+0x3ee/0xc10 net/bluetooth/sco.c:1368 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 UID: 0 PID: 54 Comm: kworker/u9:0 Not tainted 6.12.0-syzkaller-03657-g43fb83c17ba2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Workqueue: hci2 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:8758 lock_sock_nested+0x4b/0xf0 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+0x3ee/0xc10 net/bluetooth/sco.c:1368 hci_connect_cfm include/net/bluetooth/hci_core.h:1960 [inline] hci_conn_request_evt+0x7cd/0xb40 net/bluetooth/hci_event.c:3328 hci_event_func net/bluetooth/hci_event.c:7441 [inline] hci_event_packet+0x9eb/0x1180 net/bluetooth/hci_event.c:7493 hci_rx_work+0x2c6/0x1610 net/bluetooth/hci_core.c:4029 process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3229 process_scheduled_works kernel/workqueue.c:3310 [inline] worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244