Bluetooth: hci5: link tx timeout Bluetooth: hci5: 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: 50, name: kworker/u5:0 preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 3 locks held by kworker/u5:0/50: #0: ffff0000cad1c538 ((wq_completion)hci5#2){+.+.}-{0:0}, at: process_one_work+0x560/0x1204 kernel/workqueue.c:2603 #1: ffff800095027c20 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: process_one_work+0x5a0/0x1204 kernel/workqueue.c:2605 #2: ffff80008e373780 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x10/0x4c include/linux/rcupdate.h:302 CPU: 0 PID: 50 Comm: kworker/u5:0 Not tainted 6.6.0-rc4-syzkaller-g19af4a4ed414 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Workqueue: hci5 hci_tx_work Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 __might_resched+0x374/0x4d0 kernel/sched/core.c:10187 __might_sleep+0x90/0xe4 kernel/sched/core.c:10116 __mutex_lock_common+0xcc/0x21a0 kernel/locking/mutex.c:580 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x2c/0x38 kernel/locking/mutex.c:799 hci_cmd_sync_submit+0x4c/0x230 net/bluetooth/hci_sync.c:699 hci_cmd_sync_queue+0x84/0x9c net/bluetooth/hci_sync.c:739 hci_abort_conn net/bluetooth/hci_conn.c:2928 [inline] hci_disconnect+0x2e8/0x4f4 net/bluetooth/hci_conn.c:258 hci_link_tx_to net/bluetooth/hci_core.c:3421 [inline] __check_timeout+0x27c/0x3ac net/bluetooth/hci_core.c:3567 hci_sched_le net/bluetooth/hci_core.c:3750 [inline] hci_tx_work+0xf88/0x1850 net/bluetooth/hci_core.c:3828 process_one_work+0x694/0x1204 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x938/0xef4 kernel/workqueue.c:2784 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:857 ============================= [ BUG: Invalid wait context ] 6.6.0-rc4-syzkaller-g19af4a4ed414 #0 Tainted: G W ----------------------------- kworker/u5:0/50 is trying to lock: ffff0000d66e49b0 (&hdev->unregister_lock){+.+.}-{3:3}, at: hci_cmd_sync_submit+0x4c/0x230 net/bluetooth/hci_sync.c:699 other info that might help us debug this: context-{4:4} 3 locks held by kworker/u5:0/50: #0: ffff0000cad1c538 ((wq_completion)hci5#2){+.+.}-{0:0}, at: process_one_work+0x560/0x1204 kernel/workqueue.c:2603 #1: ffff800095027c20 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: process_one_work+0x5a0/0x1204 kernel/workqueue.c:2605 #2: ffff80008e373780 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x10/0x4c include/linux/rcupdate.h:302 stack backtrace: CPU: 0 PID: 50 Comm: kworker/u5:0 Tainted: G W 6.6.0-rc4-syzkaller-g19af4a4ed414 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Workqueue: hci5 hci_tx_work Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 print_lock_invalid_wait_context kernel/locking/lockdep.c:4750 [inline] check_wait_context kernel/locking/lockdep.c:4820 [inline] __lock_acquire+0x1bec/0x75e8 kernel/locking/lockdep.c:5086 lock_acquire+0x23c/0x71c kernel/locking/lockdep.c:5753 __mutex_lock_common+0x190/0x21a0 kernel/locking/mutex.c:603 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x2c/0x38 kernel/locking/mutex.c:799 hci_cmd_sync_submit+0x4c/0x230 net/bluetooth/hci_sync.c:699 hci_cmd_sync_queue+0x84/0x9c net/bluetooth/hci_sync.c:739 hci_abort_conn net/bluetooth/hci_conn.c:2928 [inline] hci_disconnect+0x2e8/0x4f4 net/bluetooth/hci_conn.c:258 hci_link_tx_to net/bluetooth/hci_core.c:3421 [inline] __check_timeout+0x27c/0x3ac net/bluetooth/hci_core.c:3567 hci_sched_le net/bluetooth/hci_core.c:3750 [inline] hci_tx_work+0xf88/0x1850 net/bluetooth/hci_core.c:3828 process_one_work+0x694/0x1204 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x938/0xef4 kernel/workqueue.c:2784 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:857 Bluetooth: hci5: command 0x0409 tx timeout Bluetooth: hci4: link tx timeout Bluetooth: hci4: 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: 50, name: kworker/u5:0 preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 INFO: lockdep is turned off. CPU: 0 PID: 50 Comm: kworker/u5:0 Tainted: G W 6.6.0-rc4-syzkaller-g19af4a4ed414 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Workqueue: hci4 hci_tx_work Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:233 show_stack+0x2c/0x44 arch/arm64/kernel/stacktrace.c:240 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 __might_resched+0x374/0x4d0 kernel/sched/core.c:10187 __might_sleep+0x90/0xe4 kernel/sched/core.c:10116 __mutex_lock_common+0xcc/0x21a0 kernel/locking/mutex.c:580 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x2c/0x38 kernel/locking/mutex.c:799 hci_cmd_sync_submit+0x4c/0x230 net/bluetooth/hci_sync.c:699 hci_cmd_sync_queue+0x84/0x9c net/bluetooth/hci_sync.c:739 hci_abort_conn net/bluetooth/hci_conn.c:2928 [inline] hci_disconnect+0x2e8/0x4f4 net/bluetooth/hci_conn.c:258 hci_link_tx_to net/bluetooth/hci_core.c:3421 [inline] __check_timeout+0x27c/0x3ac net/bluetooth/hci_core.c:3567 hci_sched_le net/bluetooth/hci_core.c:3750 [inline] hci_tx_work+0xf88/0x1850 net/bluetooth/hci_core.c:3828 process_one_work+0x694/0x1204 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x938/0xef4 kernel/workqueue.c:2784 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:857 Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: command 0x0409 tx timeout Bluetooth: hci5: ACL packet for unknown connection handle 201 Bluetooth: hci5: ACL packet for unknown connection handle 201 Bluetooth: hci5: ACL packet for unknown connection handle 201 Bluetooth: hci5: ACL packet for unknown connection handle 201 Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: ACL packet for unknown connection handle 1 Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: ACL packet for unknown connection handle 1 Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: ACL packet for unknown connection handle 1 Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: ACL packet for unknown connection handle 1 Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: command 0x0406 tx timeout Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: SCO packet for unknown connection handle 41 Bluetooth: hci5: ACL packet for unknown connection handle 201 Bluetooth: hci5: SCO packet for unknown connection handle 41 Bluetooth: hci5: ACL packet for unknown connection handle 201 Bluetooth: hci5: SCO packet for unknown connection handle 41 Bluetooth: hci5: SCO packet for unknown connection handle 41 Bluetooth: hci5: ACL packet for unknown connection handle 201 Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci4: ACL packet for unknown connection handle 0 Bluetooth: hci4: ACL packet for unknown connection handle 0 Bluetooth: hci4: ACL packet for unknown connection handle 0 Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: ACL packet for unknown connection handle 1 Bluetooth: hci5: SCO packet for unknown connection handle 201 Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: SCO packet for unknown connection handle 201 Bluetooth: hci5: ACL packet for unknown connection handle 1 Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection Bluetooth: hci5: ACL packet for unknown connection handle 1 Bluetooth: hci5: SCO packet for unknown connection handle 201 Bluetooth: hci5: Ignoring HCI_Sync_Conn_Complete event for existing connection