Bluetooth: Wrong link type (-22) Bluetooth: hci0: link tx timeout Bluetooth: hci0: killing stalled connection 10: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: 3864, name: kworker/u5:3 preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 3 locks held by kworker/u5:3/3864: #0: ffff888034ca4138 ((wq_completion)hci0#2){+.+.}-{0:0}, at: process_one_work+0x99d/0x1770 #1: ffff88804020fdb0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: process_one_work+0x9d0/0x1770 #2: ffffffff8560b6c0 (rcu_read_lock){....}-{1:2}, at: __check_timeout+0x171/0x480 CPU: 1 PID: 3864 Comm: kworker/u5:3 Not tainted 6.5.0-rc1-next-20230710 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Workqueue: hci0 hci_tx_work Call Trace: dump_stack_lvl+0xc1/0xf0 __might_resched+0x2f9/0x510 __mutex_lock+0x9e/0x1a30 hci_cmd_sync_submit+0x3b/0x2d0 hci_cmd_sync_queue+0x7b/0xb0 hci_disconnect+0x1c2/0x450 __check_timeout+0x2cc/0x480 hci_tx_work+0x11b1/0x1a70 process_one_work+0xabf/0x1770 worker_thread+0x64f/0x12a0 kthread+0x33f/0x440 ret_from_fork+0x2c/0x50 ============================= [ BUG: Invalid wait context ] 6.5.0-rc1-next-20230710 #1 Tainted: G W ----------------------------- kworker/u5:3/3864 is trying to lock: ffff88803dc909b0 (&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/u5:3/3864: #0: ffff888034ca4138 ((wq_completion)hci0#2){+.+.}-{0:0}, at: process_one_work+0x99d/0x1770 #1: ffff88804020fdb0 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: process_one_work+0x9d0/0x1770 #2: ffffffff8560b6c0 (rcu_read_lock){....}-{1:2}, at: __check_timeout+0x171/0x480 stack backtrace: CPU: 1 PID: 3864 Comm: kworker/u5:3 Tainted: G W 6.5.0-rc1-next-20230710 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Workqueue: hci0 hci_tx_work Call Trace: dump_stack_lvl+0x91/0xf0 __lock_acquire+0x1605/0x6340 lock_acquire+0x19a/0x4c0 __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+0x11b1/0x1a70 process_one_work+0xabf/0x1770 worker_thread+0x64f/0x12a0 kthread+0x33f/0x440 ret_from_fork+0x2c/0x50 Bluetooth: Unexpected continuation frame (len 12) Bluetooth: Wrong link type (-22) Bluetooth: hci0: link tx timeout Bluetooth: hci0: killing stalled connection 10:aa:aa:aa:aa:aa Bluetooth: Unexpected continuation frame (len 12) ieee80211 phy13: Selected rate control algorithm 'minstrel_ht' wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 tmpfs: Unknown parameter 'hu}€|لي£؛:' audit: type=1400 audit(1689064355.061:7): avc: denied { open } for pid=7357 comm="syz-executor.2" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=perf_event permissive=1 audit: type=1400 audit(1689064355.061:8): avc: denied { kernel } for pid=7357 comm="syz-executor.2" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=perf_event permissive=1 ieee80211 phy14: Selected rate control algorithm 'minstrel_ht' wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 Bluetooth: Wrong link type (-22) Bluetooth: hci0: link tx timeout Bluetooth: hci0: killing stalled connection 10:aa:aa:aa:aa:aa Bluetooth: Unexpected continuation frame (len 12) tmpfs: Unknown parameter 'hu}€|لي£؛:' wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 tmpfs: Unknown parameter 'hu}€|لي£؛:' wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 audit: type=1400 audit(1689064355.251:9): avc: denied { write } for pid=7378 comm="syz-executor.2" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=perf_event permissive=1 ieee80211 phy15: Selected rate control algorithm 'minstrel_ht' wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=7444 'syz-executor.1' ieee80211 phy16: Selected rate control algorithm 'minstrel_ht' wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 ieee80211 phy17: Selected rate control algorithm 'minstrel_ht' wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 ieee80211 phy18: Selected rate control algorithm 'minstrel_ht' wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 ieee80211 phy19: Selected rate control algorithm 'minstrel_ht' wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 Bluetooth: hci0: command 0x0406 tx timeout