====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Tainted: G L ------------------------------------------------------ kworker/u9:1/4934 is trying to acquire lock: ffffffff90613ec0 (rfcomm_mutex){+.+.}-{4:4}, at: rfcomm_security_cfm+0x90/0x820 net/bluetooth/rfcomm/core.c:2222 but task is already holding lock: ffffffff905ef8c0 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_encrypt_cfm+0x313/0x500 include/net/bluetooth/hci_core.h:2283 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (hci_cb_list_lock){+.+.}-{4:4}: __mutex_lock_common kernel/locking/mutex.c:646 [inline] __mutex_lock+0x19d/0x1550 kernel/locking/mutex.c:821 hci_connect_cfm include/net/bluetooth/hci_core.h:2207 [inline] hci_remote_features_evt+0x53d/0x950 net/bluetooth/hci_event.c:3786 hci_event_func net/bluetooth/hci_event.c:7887 [inline] hci_event_packet+0x6cd/0xf10 net/bluetooth/hci_event.c:7938 hci_rx_work+0x3ee/0x1020 net/bluetooth/hci_core.c:4041 process_one_work kernel/workqueue.c:3396 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3479 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3560 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 -> #1 (&hdev->lock){+.+.}-{4:4}: __mutex_lock_common kernel/locking/mutex.c:646 [inline] __mutex_lock+0x19d/0x1550 kernel/locking/mutex.c:821 l2cap_chan_connect+0xff/0xf60 net/bluetooth/l2cap_core.c:7271 l2cap_sock_connect+0x5e4/0x7e0 net/bluetooth/l2cap_sock.c:255 kernel_connect+0x141/0x1c0 net/socket.c:3755 rfcomm_session_create net/bluetooth/rfcomm/core.c:808 [inline] __rfcomm_dlc_open net/bluetooth/rfcomm/core.c:385 [inline] rfcomm_dlc_open+0x644/0x1080 net/bluetooth/rfcomm/core.c:428 rfcomm_sock_connect+0x2ed/0x650 net/bluetooth/rfcomm/sock.c:421 connect_socket net/socket.c:2141 [inline] __sys_connect_file net/socket.c:2166 [inline] __sys_connect+0x316/0x450 net/socket.c:2183 __do_sys_connect net/socket.c:2189 [inline] __se_sys_connect net/socket.c:2186 [inline] __x64_sys_connect+0x7a/0x90 net/socket.c:2186 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #0 (rfcomm_mutex){+.+.}-{4:4}: check_prev_add kernel/locking/lockdep.c:3181 [inline] check_prevs_add kernel/locking/lockdep.c:3300 [inline] validate_chain kernel/locking/lockdep.c:3924 [inline] __lock_acquire+0x15ff/0x2e50 kernel/locking/lockdep.c:5254 lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5908 __mutex_lock_common kernel/locking/mutex.c:646 [inline] __mutex_lock+0x19d/0x1550 kernel/locking/mutex.c:821 rfcomm_security_cfm+0x90/0x820 net/bluetooth/rfcomm/core.c:2222 hci_encrypt_cfm+0x37e/0x500 include/net/bluetooth/hci_core.h:2286 hci_encrypt_change_evt+0x6e6/0xcf0 net/bluetooth/hci_event.c:3715 hci_event_func net/bluetooth/hci_event.c:7887 [inline] hci_event_packet+0x6cd/0xf10 net/bluetooth/hci_event.c:7938 hci_rx_work+0x3ee/0x1020 net/bluetooth/hci_core.c:4041 process_one_work kernel/workqueue.c:3396 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3479 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3560 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 other info that might help us debug this: Chain exists of: rfcomm_mutex --> &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(rfcomm_mutex); *** DEADLOCK *** locks held by kworker/u9:1/4934: 4, last CPU#0: #0: ffff88807fb66140 ((wq_completion)hci2#2){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #0: ffff88807fb66140 ((wq_completion)hci2#2){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffff88807fb66140 ((wq_completion)hci2#2){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3361 [inline] #0: ffff88807fb66140 ((wq_completion)hci2#2){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3479 #1: ffffc9000fd47c40 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #1: ffffc9000fd47c40 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #1: ffffc9000fd47c40 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3361 [inline] #1: ffffc9000fd47c40 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3479 #2: ffff88807e6300b8 (&hdev->lock){+.+.}-{4:4}, at: hci_encrypt_change_evt+0x92/0xcf0 net/bluetooth/hci_event.c:3627 #3: ffffffff905ef8c0 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_encrypt_cfm+0x313/0x500 include/net/bluetooth/hci_core.h:2283 stack backtrace: CPU: 0 UID: 0 PID: 4934 Comm: kworker/u9:1 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Workqueue: hci2 hci_rx_work Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_circular_bug+0x2e2/0x300 kernel/locking/lockdep.c:2059 check_noncircular+0x12f/0x150 kernel/locking/lockdep.c:2191 check_prev_add kernel/locking/lockdep.c:3181 [inline] check_prevs_add kernel/locking/lockdep.c:3300 [inline] validate_chain kernel/locking/lockdep.c:3924 [inline] __lock_acquire+0x15ff/0x2e50 kernel/locking/lockdep.c:5254 lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5908 __mutex_lock_common kernel/locking/mutex.c:646 [inline] __mutex_lock+0x19d/0x1550 kernel/locking/mutex.c:821 rfcomm_security_cfm+0x90/0x820 net/bluetooth/rfcomm/core.c:2222 hci_encrypt_cfm+0x37e/0x500 include/net/bluetooth/hci_core.h:2286 hci_encrypt_change_evt+0x6e6/0xcf0 net/bluetooth/hci_event.c:3715 hci_event_func net/bluetooth/hci_event.c:7887 [inline] hci_event_packet+0x6cd/0xf10 net/bluetooth/hci_event.c:7938 hci_rx_work+0x3ee/0x1020 net/bluetooth/hci_core.c:4041 process_one_work kernel/workqueue.c:3396 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3479 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3560 kthread+0x38b/0x480 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Bluetooth: hci2: link tx timeout Bluetooth: hci2: killing stalled connection 11:aa:aa:aa:aa:aa