Bluetooth: hci0: unexpected event 0x03 length: 17 > 11 BUG: sleeping function called from invalid context at net/core/sock.c:3627 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5942, name: kworker/u33:2 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 5 locks held by kworker/u33:2/5942: #0: ffff88804ee05948 ((wq_completion)hci0#2){+.+.}-{0:0}, at: process_one_work+0x12cd/0x1b30 kernel/workqueue.c:3211 #1: ffffc9000312fd80 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_one_work+0x8bb/0x1b30 kernel/workqueue.c:3212 #2: ffff88804f764078 (&hdev->lock){+.+.}-{4:4}, at: hci_conn_complete_evt+0xbd/0x1580 net/bluetooth/hci_event.c:3074 #3: ffff88804b687820 (&conn->lock#2){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline] #3: ffff88804b687820 (&conn->lock#2){+.+.}-{3:3}, at: sco_conn_ready net/bluetooth/sco.c:1328 [inline] #3: ffff88804b687820 (&conn->lock#2){+.+.}-{3:3}, at: sco_connect_cfm+0x281/0xbc0 net/bluetooth/sco.c:1415 #4: ffff888025533258 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1623 [inline] #4: ffff888025533258 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: sco_conn_ready net/bluetooth/sco.c:1341 [inline] #4: ffff888025533258 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: sco_connect_cfm+0x416/0xbc0 net/bluetooth/sco.c:1415 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 UID: 0 PID: 5942 Comm: kworker/u33:2 Not tainted 6.13.0-rc6-syzkaller-00262-gb62cef9a5c67 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: hci0 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:3627 lock_sock include/net/sock.h:1623 [inline] sco_conn_ready net/bluetooth/sco.c:1341 [inline] sco_connect_cfm+0x416/0xbc0 net/bluetooth/sco.c:1415 hci_connect_cfm include/net/bluetooth/hci_core.h:2057 [inline] hci_conn_complete_evt+0x80d/0x1580 net/bluetooth/hci_event.c:3212 hci_event_func net/bluetooth/hci_event.c:7473 [inline] hci_event_packet+0x9eb/0x1190 net/bluetooth/hci_event.c:7525 hci_rx_work+0x2c5/0x16b0 net/bluetooth/hci_core.c:4035 process_one_work+0x958/0x1b30 kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3317 [inline] worker_thread+0x6c8/0xf00 kernel/workqueue.c:3398 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 Bluetooth: hci2: command tx timeout