Bluetooth: hci2: hardware error 0x00 ============================================ WARNING: possible recursive locking detected 6.12.0-rc2-syzkaller #0 Not tainted -------------------------------------------- kworker/u33:7/5346 is trying to acquire lock: ffff88804975f948 ((wq_completion)hci2 ){+.+.}-{0:0} , at: touch_wq_lockdep_map+0xa7/0x1c0 kernel/workqueue.c:3880 but task is already holding lock: ffff88804975f948 ((wq_completion)hci2){+.+.}-{0:0}, at: process_one_work+0x129b/0x1ba0 kernel/workqueue.c:3204 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/u33:7/5346: #0: ffff88804975f948 ((wq_completion)hci2){+.+.}-{0:0}, at: process_one_work+0x129b/0x1ba0 kernel/workqueue.c:3204 #1: ffffc9000466fd80 ((work_completion)(&hdev->error_reset)){+.+.}-{0:0}, at: process_one_work+0x921/0x1ba0 kernel/workqueue.c:3205 stack backtrace: CPU: 0 UID: 0 PID: 5346 Comm: kworker/u33:7 Not tainted 6.12.0-rc2-syzkaller #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: hci2 hci_error_reset Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_deadlock_bug+0x2e3/0x410 kernel/locking/lockdep.c:3037 check_deadlock kernel/locking/lockdep.c:3089 [inline] validate_chain kernel/locking/lockdep.c:3891 [inline] __lock_acquire+0x2185/0x3ce0 kernel/locking/lockdep.c:5202 lock_acquire.part.0+0x11b/0x380 kernel/locking/lockdep.c:5825 touch_wq_lockdep_map+0xad/0x1c0 kernel/workqueue.c:3880 __flush_workqueue+0x129/0x1200 kernel/workqueue.c:3922 drain_workqueue+0x18f/0x3d0 kernel/workqueue.c:4086 destroy_workqueue+0xc2/0xaa0 kernel/workqueue.c:5830 hci_release_dev+0x14e/0x600 net/bluetooth/hci_core.c:2733 bt_host_release+0x6a/0xb0 net/bluetooth/hci_sysfs.c:94 device_release+0xa1/0x240 drivers/base/core.c:2575 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x1e4/0x5a0 lib/kobject.c:737 put_device+0x1f/0x30 drivers/base/core.c:3783 process_one_work+0x9c5/0x1ba0 kernel/workqueue.c:3229 process_scheduled_works kernel/workqueue.c:3310 [inline] worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244