============================================ WARNING: possible recursive locking detected 5.15.151-syzkaller #0 Not tainted -------------------------------------------- kworker/u5:0/144 is trying to acquire lock: ffff0000d7e87938 ((wq_completion)hci4){+.+.}-{0:0}, at: flush_workqueue+0x120/0x11c4 kernel/workqueue.c:2830 but task is already holding lock: ffff0000d7e87938 ((wq_completion)hci4){+.+.}-{0:0}, at: process_one_work+0x66c/0x11b8 kernel/workqueue.c:2283 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/u5:0/144: #0: ffff0000d7e87938 ((wq_completion)hci4){+.+.}-{0:0}, at: process_one_work+0x66c/0x11b8 kernel/workqueue.c:2283 #1: ffff80001a3d7c00 ((work_completion)(&hdev->error_reset)){+.+.}-{0:0}, at: process_one_work+0x6ac/0x11b8 kernel/workqueue.c:2285 stack backtrace: CPU: 1 PID: 144 Comm: kworker/u5:0 Not tainted 5.15.151-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Workqueue: hci4 hci_error_reset Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 __lock_acquire+0x62bc/0x7638 kernel/locking/lockdep.c:5012 lock_acquire+0x240/0x77c kernel/locking/lockdep.c:5623 flush_workqueue+0x14c/0x11c4 kernel/workqueue.c:2830 drain_workqueue+0xb8/0x32c kernel/workqueue.c:2995 destroy_workqueue+0x80/0xa34 kernel/workqueue.c:4439 hci_release_dev+0x118/0x116c net/bluetooth/hci_core.c:4071 bt_host_release+0x70/0x88 net/bluetooth/hci_sysfs.c:92 device_release+0x8c/0x1ac kobject_cleanup lib/kobject.c:713 [inline] kobject_release lib/kobject.c:744 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x2c4/0x438 lib/kobject.c:761 put_device+0x28/0x40 drivers/base/core.c:3502 hci_dev_put include/net/bluetooth/hci_core.h:1207 [inline] hci_error_reset+0x124/0x2b8 net/bluetooth/hci_core.c:2344 process_one_work+0x790/0x11b8 kernel/workqueue.c:2310 worker_thread+0x910/0x1034 kernel/workqueue.c:2457 kthread+0x37c/0x45c kernel/kthread.c:319 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870