============================================ WARNING: possible recursive locking detected 6.12.0-rc1-syzkaller-g80cb3fb61135 #0 Not tainted -------------------------------------------- kworker/u9:2/6421 is trying to acquire lock: ffff0000ef8d3948 ((wq_completion)hci4){+.+.}-{0:0}, at: touch_wq_lockdep_map+0x70/0x164 kernel/workqueue.c:3877 but task is already holding lock: ffff0000ef8d3948 ((wq_completion)hci4){+.+.}-{0:0}, at: process_one_work+0x628/0x1600 kernel/workqueue.c:3203 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock((wq_completion)hci4); lock((wq_completion)hci4); *** DEADLOCK *** May be due to missing lock nesting notation 2 locks held by kworker/u9:2/6421: #0: ffff0000ef8d3948 ((wq_completion)hci4){+.+.}-{0:0}, at: process_one_work+0x628/0x1600 kernel/workqueue.c:3203 #1: ffff8000a3ae7c20 ((work_completion)(&hdev->error_reset)){+.+.}-{0:0}, at: process_one_work+0x6bc/0x1600 kernel/workqueue.c:3203 stack backtrace: CPU: 1 UID: 0 PID: 6421 Comm: kworker/u9:2 Not tainted 6.12.0-rc1-syzkaller-g80cb3fb61135 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Workqueue: hci4 hci_error_reset Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:319 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:326 __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 print_deadlock_bug+0x4e8/0x668 kernel/locking/lockdep.c:3037 check_deadlock kernel/locking/lockdep.c:3089 [inline] validate_chain kernel/locking/lockdep.c:3891 [inline] __lock_acquire+0x6180/0x77c8 kernel/locking/lockdep.c:5202 lock_acquire+0x240/0x728 kernel/locking/lockdep.c:5825 touch_wq_lockdep_map+0xa8/0x164 kernel/workqueue.c:3880 __flush_workqueue+0x118/0x1174 kernel/workqueue.c:3922 drain_workqueue+0xb8/0x32c kernel/workqueue.c:4086 destroy_workqueue+0xb8/0xdc0 kernel/workqueue.c:5830 hci_release_dev+0x118/0x11a4 net/bluetooth/hci_core.c:2733 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:3783 hci_dev_put include/net/bluetooth/hci_core.h:1581 [inline] hci_error_reset+0x160/0x35c net/bluetooth/hci_core.c:1019 process_one_work+0x7bc/0x1600 kernel/workqueue.c:3229 process_scheduled_works kernel/workqueue.c:3310 [inline] worker_thread+0x97c/0xeec kernel/workqueue.c:3391 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860