BUG: sleeping function called from invalid context at net/core/sock.c:3536 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 52, name: kworker/u9:0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 6 locks held by kworker/u9:0/52: #0: ffff0000eb2ba948 ((wq_completion)hci4#2){+.+.}-{0:0}, at: process_one_work+0x624/0x15b8 kernel/workqueue.c:3222 #1: ffff800094927c20 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_one_work+0x6a0/0x15b8 kernel/workqueue.c:3222 #2: ffff0000d0dac078 (&hdev->lock){+.+.}-{3:3}, at: hci_sync_conn_complete_evt+0xa4/0x870 net/bluetooth/hci_event.c:4926 #3: ffff8000922a2ea8 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_connect_cfm include/net/bluetooth/hci_core.h:1967 [inline] #3: ffff8000922a2ea8 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_sync_conn_complete_evt+0x3d4/0x870 net/bluetooth/hci_event.c:5009 #4: ffff0000d464fc20 (&conn->lock#2){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #4: ffff0000d464fc20 (&conn->lock#2){+.+.}-{2:2}, at: sco_conn_ready net/bluetooth/sco.c:1277 [inline] #4: ffff0000d464fc20 (&conn->lock#2){+.+.}-{2:2}, at: sco_connect_cfm+0x260/0x94c net/bluetooth/sco.c:1362 #5: ffff0000d5aea258 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1602 [inline] #5: ffff0000d5aea258 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: sco_conn_ready net/bluetooth/sco.c:1290 [inline] #5: ffff0000d5aea258 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: sco_connect_cfm+0x3e8/0x94c net/bluetooth/sco.c:1362 Preemption disabled at: [] spin_lock include/linux/spinlock.h:351 [inline] [] sco_conn_ready net/bluetooth/sco.c:1277 [inline] [] sco_connect_cfm+0x260/0x94c net/bluetooth/sco.c:1362 CPU: 0 PID: 52 Comm: kworker/u9:0 Not tainted 6.10.0-rc7-syzkaller-gc912bf709078 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Workqueue: hci4 hci_rx_work Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:317 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:324 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:114 dump_stack+0x1c/0x28 lib/dump_stack.c:123 __might_resched+0x374/0x4d0 kernel/sched/core.c:10196 __might_sleep+0x90/0xe4 kernel/sched/core.c:10125 lock_sock_nested+0x6c/0x11c net/core/sock.c:3536 lock_sock include/net/sock.h:1602 [inline] sco_conn_ready net/bluetooth/sco.c:1290 [inline] sco_connect_cfm+0x3e8/0x94c net/bluetooth/sco.c:1362 hci_connect_cfm include/net/bluetooth/hci_core.h:1970 [inline] hci_sync_conn_complete_evt+0x438/0x870 net/bluetooth/hci_event.c:5009 hci_event_func net/bluetooth/hci_event.c:7444 [inline] hci_event_packet+0x8d8/0x105c net/bluetooth/hci_event.c:7496 hci_rx_work+0x318/0xa78 net/bluetooth/hci_core.c:4042 process_one_work+0x79c/0x15b8 kernel/workqueue.c:3248 process_scheduled_works kernel/workqueue.c:3329 [inline] worker_thread+0x938/0xecc kernel/workqueue.c:3409 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 Bluetooth: hci1: command tx timeout Bluetooth: hci2: command tx timeout Bluetooth: hci4: command tx timeout Bluetooth: hci3: command tx timeout