Bluetooth: hci3: SCO packet for unknown connection handle 200 Bluetooth: hci7: unexpected event 0x01 length: 4 > 1 Bluetooth: hci7: link tx timeout Bluetooth: hci7: killing stalled connection 11:aa:aa:aa:aa:aa BUG: sleeping function called from invalid context at kernel/locking/mutex.c:580 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 289, name: kworker/u7:3 preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 3 locks held by kworker/u7:3/289: #0: ffff88800e4d7938 ((wq_completion)hci7#2){+.+.}-{0:0}, at: process_one_work+0x69e/0x1450 #1: ffff88803e797d98 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: process_one_work+0x6d1/0x1450 #2: ffffffff8560e920 (rcu_read_lock){....}-{1:2}, at: __check_timeout+0x171/0x480 CPU: 0 PID: 289 Comm: kworker/u7:3 Not tainted 6.5.0-rc7-next-20230823 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Workqueue: hci7 hci_tx_work Call Trace: dump_stack_lvl+0xc1/0xf0 __might_resched+0x2f9/0x510 __mutex_lock+0x9e/0x1a30 Bluetooth: hci2: SCO packet for unknown connection handle 200 Bluetooth: hci3: ACL packet for unknown connection handle 200 hci_cmd_sync_submit+0x3b/0x2d0 hci_cmd_sync_queue+0x7b/0xb0 hci_disconnect+0x1c2/0x450 __check_timeout+0x2cc/0x480 hci_tx_work+0x7cb/0x1a70 process_one_work+0x7c8/0x1450 worker_thread+0x80e/0x1190 kthread+0x33f/0x440 ret_from_fork+0x48/0x80 ret_from_fork_asm+0x1b/0x30 ============================= [ BUG: Invalid wait context ] 6.5.0-rc7-next-20230823 #1 Tainted: G W ----------------------------- kworker/u7:3/289 is trying to lock: ffff88801567c9b0 (&hdev->unregister_lock){+.+.}-{3:3}, at: hci_cmd_sync_submit+0x3b/0x2d0 other info that might help us debug this: context-{4:4} 3 locks held by kworker/u7:3/289: #0: ffff88800e4d7938 ((wq_completion)hci7#2){+.+.}-{0:0}, at: process_one_work+0x69e/0x1450 #1: ffff88803e797d98 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: process_one_work+0x6d1/0x1450 #2: ffffffff8560e920 (rcu_read_lock){....}-{1:2}, at: __check_timeout+0x171/0x480 stack backtrace: CPU: 0 PID: 289 Comm: kworker/u7:3 Tainted: G W 6.5.0-rc7-next-20230823 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Bluetooth: hci2: ACL packet for unknown connection handle 200 Workqueue: hci7 hci_tx_work Call Trace: dump_stack_lvl+0x91/0xf0 __lock_acquire+0x1605/0x6340 lock_acquire+0x19a/0x4c0 Bluetooth: hci0: ACL packet for unknown connection handle 0 __mutex_lock+0x12a/0x1a30 hci_cmd_sync_submit+0x3b/0x2d0 hci_cmd_sync_queue+0x7b/0xb0 hci_disconnect+0x1c2/0x450 __check_timeout+0x2cc/0x480 hci_tx_work+0x7cb/0x1a70 process_one_work+0x7c8/0x1450 worker_thread+0x80e/0x1190 kthread+0x33f/0x440 ret_from_fork+0x48/0x80 ret_from_fork_asm+0x1b/0x30 Bluetooth: hci0: SCO packet for unknown connection handle 200 Bluetooth: hci2: unexpected event 0x01 length: 4 > 1 Bluetooth: hci2: ACL packet for unknown connection handle 0 Bluetooth: hci3: unexpected event 0x01 length: 4 > 1 Bluetooth: hci3: ACL packet for unknown connection handle 0 Bluetooth: hci7: SCO packet for unknown connection handle 200 Bluetooth: hci7: ACL packet for unknown connection handle 200 Bluetooth: hci7: unexpected event 0x01 length: 4 > 1 Bluetooth: hci0: SCO packet for unknown connection handle 200 Bluetooth: hci0: ACL packet for unknown connection handle 200 Bluetooth: hci0: unexpected event 0x01 length: 4 > 1 Bluetooth: hci0: ACL packet for unknown connection handle 0 Bluetooth: hci0: SCO packet for unknown connection handle 200 Bluetooth: hci7: link tx timeout Bluetooth: hci7: killing stalled connection 11:aa:aa:aa:aa:aa Bluetooth: hci4: SCO packet for unknown connection handle 200 Bluetooth: hci4: ACL packet for unknown connection handle 200 Bluetooth: hci4: unexpected event 0x01 length: 4 > 1 Bluetooth: hci4: ACL packet for unknown connection handle 0 Bluetooth: hci3: ACL packet for unknown connection handle 200 Bluetooth: hci3: unexpected event 0x01 length: 4 > 1 sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK cmd_age=0s sr 1:0:0:0: [sr0] tag#0 CDB: Compare sr 1:0:0:0: [sr0] tag#0 CDB[00]: 39 6a 2c 74 63 af ef 4a c6 28 ae ae 70 9d eb 51 sr 1:0:0:0: [sr0] tag#0 CDB[10]: 08 49 4e 3b 1c 83 ad a8 ff 8e 71 Bluetooth: hci7: command 0x0406 tx timeout sr 1:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK cmd_age=0s sr 1:0:0:0: [sr0] tag#0 CDB: Compare sr 1:0:0:0: [sr0] tag#0 CDB[00]: 39 6a 2c 74 63 af ef 4a c6 28 ae ae 70 9d eb 51 sr 1:0:0:0: [sr0] tag#0 CDB[10]: 08 49 4e 3b 1c 83 ad a8 ff 8e 71 Bluetooth: hci5: command 0x0406 tx timeout