====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ syz-executor/4276 is trying to acquire lock: ffff8880735659a8 ((work_completion)(&conn->pending_rx_work)){+.+.}-{0:0}, at: __flush_work+0x105/0xac0 kernel/workqueue.c:3076 but task is already holding lock: ffffffff8eecacc8 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_disconn_cfm include/net/bluetooth/hci_core.h:1834 [inline] ffffffff8eecacc8 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_conn_hash_flush+0xac/0x290 net/bluetooth/hci_conn.c:2603 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (hci_cb_list_lock){+.+.}-{3:3}: __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0x12d/0xb40 kernel/locking/mutex.c:747 hci_connect_cfm include/net/bluetooth/hci_core.h:1819 [inline] hci_remote_features_evt+0x464/0xa10 net/bluetooth/hci_event.c:3756 hci_event_func net/bluetooth/hci_event.c:7304 [inline] hci_event_packet+0x66a/0xe60 net/bluetooth/hci_event.c:7353 hci_rx_work+0x3eb/0xd40 net/bluetooth/hci_core.c:4041 process_one_work+0x8ab/0x1160 kernel/workqueue.c:2292 worker_thread+0xaf5/0x12a0 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 -> #1 (&hdev->lock){+.+.}-{3:3}: __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0x12d/0xb40 kernel/locking/mutex.c:747 hci_le_conn_update+0xb6/0x2e0 net/bluetooth/hci_conn.c:615 l2cap_conn_param_update_req net/bluetooth/l2cap_core.c:4808 [inline] l2cap_le_sig_cmd net/bluetooth/l2cap_core.c:5677 [inline] l2cap_le_sig_channel net/bluetooth/l2cap_core.c:5754 [inline] l2cap_recv_frame+0xd300/0x103f0 net/bluetooth/l2cap_core.c:7182 process_pending_rx+0x3a/0x80 net/bluetooth/l2cap_core.c:7200 process_one_work+0x8ab/0x1160 kernel/workqueue.c:2292 worker_thread+0xaf5/0x12a0 kernel/workqueue.c:2439 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 -> #0 ((work_completion)(&conn->pending_rx_work)){+.+.}-{0:0}: check_prev_add kernel/locking/lockdep.c:3162 [inline] check_prevs_add kernel/locking/lockdep.c:3281 [inline] validate_chain kernel/locking/lockdep.c:3897 [inline] __lock_acquire+0x3a03/0x7ea0 kernel/locking/lockdep.c:5171 lock_acquire+0x1bc/0x4a0 kernel/locking/lockdep.c:5790 __flush_work+0x11e/0xac0 kernel/workqueue.c:3076 __cancel_work_timer+0x3f4/0x560 kernel/workqueue.c:3167 l2cap_conn_del+0x78/0x5b0 net/bluetooth/l2cap_core.c:1831 hci_disconn_cfm include/net/bluetooth/hci_core.h:1837 [inline] hci_conn_hash_flush+0x113/0x290 net/bluetooth/hci_conn.c:2603 hci_dev_close_sync+0x989/0x10a0 net/bluetooth/hci_sync.c:5328 hci_dev_do_close net/bluetooth/hci_core.c:523 [inline] hci_unregister_dev+0x216/0x520 net/bluetooth/hci_core.c:2720 vhci_release+0x7f/0xd0 drivers/bluetooth/hci_vhci.c:565 __fput+0x20a/0x8b0 fs/file_table.c:320 task_work_run+0x1d0/0x260 kernel/task_work.c:203 exit_task_work include/linux/task_work.h:39 [inline] do_exit+0x9d5/0x2570 kernel/exit.c:887 do_group_exit+0x229/0x2e0 kernel/exit.c:1030 get_signal+0x1259/0x1340 kernel/signal.c:2884 arch_do_signal_or_restart+0xc4/0x1310 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x70/0x110 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:213 irqentry_exit_to_user_mode+0x5/0x30 kernel/entry/common.c:319 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 other info that might help us debug this: Chain exists of: (work_completion)(&conn->pending_rx_work) --> &hdev->lock --> hci_cb_list_lock Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(hci_cb_list_lock); lock(&hdev->lock); lock(hci_cb_list_lock); lock((work_completion)(&conn->pending_rx_work)); *** DEADLOCK *** 3 locks held by syz-executor/4276: #0: ffff888077b4d1e0 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:521 [inline] #0: ffff888077b4d1e0 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x20e/0x520 net/bluetooth/hci_core.c:2720 #1: ffff888077b4c428 (&hdev->lock){+.+.}-{3:3}, at: hci_dev_close_sync+0x546/0x10a0 net/bluetooth/hci_sync.c:5316 #2: ffffffff8eecacc8 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_disconn_cfm include/net/bluetooth/hci_core.h:1834 [inline] #2: ffffffff8eecacc8 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_conn_hash_flush+0xac/0x290 net/bluetooth/hci_conn.c:2603 stack backtrace: CPU: 0 PID: 4276 Comm: syz-executor Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 check_noncircular+0x2f8/0x400 kernel/locking/lockdep.c:2215 check_prev_add kernel/locking/lockdep.c:3162 [inline] check_prevs_add kernel/locking/lockdep.c:3281 [inline] validate_chain kernel/locking/lockdep.c:3897 [inline] __lock_acquire+0x3a03/0x7ea0 kernel/locking/lockdep.c:5171 lock_acquire+0x1bc/0x4a0 kernel/locking/lockdep.c:5790 __flush_work+0x11e/0xac0 kernel/workqueue.c:3076 __cancel_work_timer+0x3f4/0x560 kernel/workqueue.c:3167 l2cap_conn_del+0x78/0x5b0 net/bluetooth/l2cap_core.c:1831 hci_disconn_cfm include/net/bluetooth/hci_core.h:1837 [inline] hci_conn_hash_flush+0x113/0x290 net/bluetooth/hci_conn.c:2603 hci_dev_close_sync+0x989/0x10a0 net/bluetooth/hci_sync.c:5328 hci_dev_do_close net/bluetooth/hci_core.c:523 [inline] hci_unregister_dev+0x216/0x520 net/bluetooth/hci_core.c:2720 vhci_release+0x7f/0xd0 drivers/bluetooth/hci_vhci.c:565 __fput+0x20a/0x8b0 fs/file_table.c:320 task_work_run+0x1d0/0x260 kernel/task_work.c:203 exit_task_work include/linux/task_work.h:39 [inline] do_exit+0x9d5/0x2570 kernel/exit.c:887 do_group_exit+0x229/0x2e0 kernel/exit.c:1030 get_signal+0x1259/0x1340 kernel/signal.c:2884 arch_do_signal_or_restart+0xc4/0x1310 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x70/0x110 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:213 irqentry_exit_to_user_mode+0x5/0x30 kernel/entry/common.c:319 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0033:0x7f9ab0f9ec07 Code: Unable to access opcode bytes at 0x7f9ab0f9ebdd. RSP: 002b:00007ffda1ff18b8 EFLAGS: 00000206 RAX: ffffffffffffffff RBX: 000000000000318d RCX: 00007f9ab0f9ec07 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007ffda1ff1970 RBP: 00007ffda1ff1970 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 00007ffda1ff2a00 R13: 00007f9ab1036fb3 R14: 000055555c2544e8 R15: 0000000000000005