BUG: sleeping function called from invalid context at net/core/sock.c:3253 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 4046, name: kworker/u5:1 5 locks held by kworker/u5:1/4046: #0: ffff0000d9eeb938 ((wq_completion)hci1#2){+.+.}-{0:0}, at: process_one_work+0x678/0x1140 kernel/workqueue.c:2283 #1: ffff80001f2c7c00 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_one_work+0x6b8/0x1140 kernel/workqueue.c:2285 #2: ffff8000163dce48 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_connect_cfm+0x3c/0x130 include/net/bluetooth/hci_core.h:1502 #3: ffff0000d8a9c420 (&conn->lock#2){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:363 [inline] #3: ffff0000d8a9c420 (&conn->lock#2){+.+.}-{2:2}, at: sco_conn_ready net/bluetooth/sco.c:1119 [inline] #3: ffff0000d8a9c420 (&conn->lock#2){+.+.}-{2:2}, at: sco_connect_cfm+0x25c/0x8c0 net/bluetooth/sco.c:1204 #4: ffff0000d30db120 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1694 [inline] #4: ffff0000d30db120 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: sco_conn_ready net/bluetooth/sco.c:1132 [inline] #4: ffff0000d30db120 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: sco_connect_cfm+0x3cc/0x8c0 net/bluetooth/sco.c:1204 Preemption disabled at: [] spin_lock include/linux/spinlock.h:363 [inline] [] sco_conn_ready net/bluetooth/sco.c:1119 [inline] [] sco_connect_cfm+0x25c/0x8c0 net/bluetooth/sco.c:1204 CPU: 0 PID: 4046 Comm: kworker/u5:1 Not tainted 5.15.189-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 Workqueue: hci1 hci_rx_work Call trace: dump_backtrace+0x0/0x43c arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 ___might_sleep+0x358/0x4d4 kernel/sched/core.c:9639 __might_sleep+0x98/0x124 kernel/sched/core.c:9593 lock_sock_nested+0xec/0x1d4 net/core/sock.c:3253 lock_sock include/net/sock.h:1694 [inline] sco_conn_ready net/bluetooth/sco.c:1132 [inline] sco_connect_cfm+0x3cc/0x8c0 net/bluetooth/sco.c:1204 hci_connect_cfm+0x98/0x130 include/net/bluetooth/hci_core.h:1505 hci_conn_request_evt+0x564/0x7c8 net/bluetooth/hci_event.c:2914 hci_event_packet+0x710/0x11bc net/bluetooth/hci_event.c:6395 hci_rx_work+0x1cc/0x880 net/bluetooth/hci_core.c:5160 process_one_work+0x79c/0x1140 kernel/workqueue.c:2310 worker_thread+0x8f4/0x101c kernel/workqueue.c:2457 kthread+0x374/0x454 kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:855