Bluetooth: hci2: Opcode 0x0c03 failed: -110 ============================================ WARNING: possible recursive locking detected 6.8.0-rc7-syzkaller-g707081b61156 #0 Not tainted -------------------------------------------- kworker/u5:3/6197 is trying to acquire lock: ffff0000d5f88938 ((wq_completion)hci2){+.+.}-{0:0}, at: __flush_workqueue+0x120/0x11c4 kernel/workqueue.c:3146 but task is already holding lock: ffff0000d5f88938 ((wq_completion)hci2){+.+.}-{0:0}, at: process_one_work+0x560/0x1204 kernel/workqueue.c:2606 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock((wq_completion)hci2); lock((wq_completion)hci2); *** DEADLOCK *** May be due to missing lock nesting notation 2 locks held by kworker/u5:3/6197: #0: ffff0000d5f88938 ((wq_completion)hci2){+.+.}-{0:0}, at: process_one_work+0x560/0x1204 kernel/workqueue.c:2606 #1: ffff800097fd7c20 ((work_completion)(&hdev->error_reset)){+.+.}-{0:0}, at: process_one_work+0x5a0/0x1204 kernel/workqueue.c:2608 stack backtrace: CPU: 0 PID: 6197 Comm: kworker/u5:3 Not tainted 6.8.0-rc7-syzkaller-g707081b61156 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Workqueue: hci2 hci_error_reset Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:291 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:298 __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_deadlock_bug+0x4e4/0x660 kernel/locking/lockdep.c:3012 check_deadlock kernel/locking/lockdep.c:3062 [inline] validate_chain kernel/locking/lockdep.c:3856 [inline] __lock_acquire+0x5fe4/0x763c kernel/locking/lockdep.c:5137 lock_acquire+0x23c/0x71c kernel/locking/lockdep.c:5754 __flush_workqueue+0x14c/0x11c4 kernel/workqueue.c:3146 drain_workqueue+0xb8/0x32c kernel/workqueue.c:3311 destroy_workqueue+0xb8/0xdc4 kernel/workqueue.c:4793 hci_release_dev+0x118/0x11a0 net/bluetooth/hci_core.c:2775 bt_host_release+0x70/0x88 net/bluetooth/hci_sysfs.c:94 device_release+0x8c/0x1ac kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x2a8/0x41c lib/kobject.c:737 put_device+0x28/0x40 drivers/base/core.c:3747 hci_dev_put include/net/bluetooth/hci_core.h:1611 [inline] hci_error_reset+0x160/0x35c net/bluetooth/hci_core.c:1063 process_one_work+0x694/0x1204 kernel/workqueue.c:2633 process_scheduled_works kernel/workqueue.c:2706 [inline] worker_thread+0x938/0xef4 kernel/workqueue.c:2787 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860