Bluetooth: Wrong link type (-22) Bluetooth: Wrong link type (-22) Bluetooth: hci1: link tx timeout Bluetooth: hci1: 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: 292, name: kworker/u7:5 preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 3 locks held by kworker/u7:5/292: #0: ffff888009a7fd38 ((wq_completion)hci1#2){+.+.}-{0:0}, at: process_one_work+0x69e/0x1450 #1: ffff88803f037d98 ((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: 1 PID: 292 Comm: kworker/u7:5 Not tainted 6.5.0-rc7-next-20230821 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Workqueue: hci1 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+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-20230821 #1 Tainted: G W ----------------------------- kworker/u7:5/292 is trying to lock: ffff88803379c9b0 (&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:5/292: #0: ffff888009a7fd38 ((wq_completion)hci1#2){+.+.}-{0:0}, at: process_one_work+0x69e/0x1450 #1: ffff88803f037d98 ((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: 1 PID: 292 Comm: kworker/u7:5 Tainted: G W 6.5.0-rc7-next-20230821 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Workqueue: hci1 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+0x7c8/0x1450 worker_thread+0x80e/0x1190 kthread+0x33f/0x440 ret_from_fork+0x48/0x80 ret_from_fork_asm+0x1b/0x30 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=37142 sclass=netlink_route_socket pid=11337 comm=syz-executor.3 netlink: 4 bytes leftover after parsing attributes in process `syz-executor.0'. netlink: 4 bytes leftover after parsing attributes in process `syz-executor.0'. FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 1 CPU: 0 PID: 11347 Comm: syz-executor.4 Tainted: G W 6.5.0-rc7-next-20230821 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: dump_stack_lvl+0xc1/0xf0 should_fail_ex+0x4b4/0x5b0 should_failslab+0x9/0x20 kmem_cache_alloc+0x61/0x390 getname_flags.part.0+0x50/0x4f0 getname+0x92/0xe0 do_sys_openat2+0xec/0x1d0 __x64_sys_openat+0x143/0x200 do_syscall_64+0x3f/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 RIP: 0033:0x7fb1ab38aa04 Code: 84 00 00 00 00 00 44 89 54 24 0c e8 96 f9 ff ff 44 8b 54 24 0c 44 89 e2 48 89 ee 41 89 c0 bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 89 44 24 0c e8 c8 f9 ff ff 8b 44 RSP: 002b:00007fb1a894d060 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fb1ab4eaf60 RCX: 00007fb1ab38aa04 RDX: 0000000000000002 RSI: 00007fb1a894d0f0 RDI: 00000000ffffff9c RBP: 00007fb1a894d0f0 R08: 0000000000000000 R09: 00007fb1a894cf70 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000002 R13: 00007ffd6d088b3f R14: 00007fb1a894d300 R15: 0000000000022000 Bluetooth: Wrong link type (-22) netlink: 4 bytes leftover after parsing attributes in process `syz-executor.0'. SELinux: unrecognized netlink message: protocol=0 nlmsg_type=37142 sclass=netlink_route_socket pid=11359 comm=syz-executor.3 Bluetooth: Wrong link type (-22) Bluetooth: Wrong link type (-22) Bluetooth: hci1: link tx timeout Bluetooth: hci1: killing stalled connection 10:aa:aa:aa:aa:aa SELinux: unrecognized netlink message: protocol=0 nlmsg_type=37142 sclass=netlink_route_socket pid=11363 comm=syz-executor.1 Bluetooth: hci1: command 0x0406 tx timeout Bluetooth: hci3: command 0x0406 tx timeout