============================================ WARNING: possible recursive locking detected 6.10.0-rc7-syzkaller-gc912bf709078 #0 Not tainted -------------------------------------------- kworker/u9:1/11852 is trying to acquire lock: ffff0000dad33948 ((wq_completion)hci1){+.+.}-{0:0}, at: touch_wq_lockdep_map+0x70/0x118 kernel/workqueue.c:3895 but task is already holding lock: ffff0000dad33948 ((wq_completion)hci1){+.+.}-{0:0}, at: process_one_work+0x624/0x15b8 kernel/workqueue.c:3222 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock((wq_completion)hci1 ); lock((wq_completion)hci1 ); *** DEADLOCK *** May be due to missing lock nesting notation 2 locks held by kworker/u9:1/11852: #0: ffff0000dad33948 ( (wq_completion)hci1 ){+.+.}-{0:0} , at: process_one_work+0x624/0x15b8 kernel/workqueue.c:3222 #1: ffff80009a287c20 ( (work_completion)(&hdev->error_reset) ){+.+.}-{0:0} , at: process_one_work+0x6a0/0x15b8 kernel/workqueue.c:3222 stack backtrace: CPU: 1 PID: 11852 Comm: kworker/u9:1 Not tainted 6.10.0-rc7-syzkaller-gc912bf709078 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Workqueue: hci1 hci_error_reset Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:317 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:324 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:114 dump_stack+0x1c/0x28 lib/dump_stack.c:123 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+0x240/0x728 kernel/locking/lockdep.c:5754 touch_wq_lockdep_map+0x98/0x118 kernel/workqueue.c:3895 __flush_workqueue+0x118/0x1174 kernel/workqueue.c:3937 drain_workqueue+0xb8/0x32c kernel/workqueue.c:4101 destroy_workqueue+0xb8/0xdc0 kernel/workqueue.c:5817 hci_release_dev+0x118/0x1194 net/bluetooth/hci_core.c:2763 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:3787 hci_dev_put include/net/bluetooth/hci_core.h:1591 [inline] hci_error_reset+0x160/0x35c net/bluetooth/hci_core.c:1054 process_one_work+0x79c/0x15b8 kernel/workqueue.c:3248 process_scheduled_works kernel/workqueue.c:3329 [inline] worker_thread+0x938/0xecc kernel/workqueue.c:3409 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860