hci2: status 0x00 conn 000000007ea7bf51 status 0x00 encrypt 0 conn 0000000058cca775 status 0x00 encrypt 0x00 ====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ kworker/u9:1/4709 is trying to acquire lock: ffff80008ac11e20 (rfcomm_mutex){+.+.}-{4:4}, at: rfcomm_security_cfm+0x54/0x4c8 net/bluetooth/rfcomm/core.c:2223 but task is already holding lock: ffff80008abeefa0 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_auth_cfm include/net/bluetooth/hci_core.h:2200 [inline] ffff80008abeefa0 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_auth_complete_evt+0x27c/0xa84 net/bluetooth/hci_event.c:3554 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+0x164/0x1078 kernel/locking/mutex.c:821 mutex_lock_nested+0x24/0x30 kernel/locking/mutex.c:874 hci_connect_cfm include/net/bluetooth/hci_core.h:2164 [inline] hci_remote_features_evt+0x284/0x5e0 net/bluetooth/hci_event.c:3786 hci_event_func net/bluetooth/hci_event.c:7887 [inline] hci_event_packet+0x4e0/0x9c8 net/bluetooth/hci_event.c:7938 hci_rx_work+0x2f4/0xd78 net/bluetooth/hci_core.c:4087 process_one_work kernel/workqueue.c:3396 [inline] process_scheduled_works+0x91c/0x1250 kernel/workqueue.c:3479 worker_thread+0x798/0xbd0 kernel/workqueue.c:3560 kthread+0x304/0x3d4 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:854 -> #1 (&hdev->lock){+.+.}-{4:4}: __mutex_lock_common kernel/locking/mutex.c:646 [inline] __mutex_lock+0x164/0x1078 kernel/locking/mutex.c:821 mutex_lock_nested+0x24/0x30 kernel/locking/mutex.c:874 l2cap_chan_connect+0x84/0xe94 net/bluetooth/l2cap_core.c:7289 l2cap_sock_connect+0x44c/0x654 net/bluetooth/l2cap_sock.c:255 kernel_connect+0x12c/0x1a0 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+0x574/0x8b0 net/bluetooth/rfcomm/core.c:428 rfcomm_sock_connect+0x278/0x598 net/bluetooth/rfcomm/sock.c:419 connect_socket net/socket.c:2141 [inline] __sys_connect_file+0x13c/0x184 net/socket.c:2166 __sys_connect+0x114/0x194 net/socket.c:2183 __do_sys_connect net/socket.c:2189 [inline] __se_sys_connect net/socket.c:2186 [inline] __arm64_sys_connect+0x84/0x9c net/socket.c:2186 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x244 arch/arm64/kernel/syscall.c:49 el0_svc_common+0xec/0x23c arch/arm64/kernel/syscall.c:121 do_el0_svc+0x4c/0x5c arch/arm64/kernel/syscall.c:140 el0_svc+0x60/0x1d8 arch/arm64/kernel/entry-common.c:796 el0t_64_sync_handler+0x44/0x104 arch/arm64/kernel/entry-common.c:815 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:606 -> #0 (rfcomm_mutex){+.+.}-{4:4}: check_prev_add kernel/locking/lockdep.c:3209 [inline] check_prevs_add kernel/locking/lockdep.c:3328 [inline] validate_chain kernel/locking/lockdep.c:3952 [inline] __lock_acquire+0x1660/0x2b08 kernel/locking/lockdep.c:5288 lock_acquire+0x13c/0x320 kernel/locking/lockdep.c:5942 __mutex_lock_common kernel/locking/mutex.c:646 [inline] __mutex_lock+0x164/0x1078 kernel/locking/mutex.c:821 mutex_lock_nested+0x24/0x30 kernel/locking/mutex.c:874 rfcomm_security_cfm+0x54/0x4c8 net/bluetooth/rfcomm/core.c:2223 hci_auth_cfm include/net/bluetooth/hci_core.h:2203 [inline] hci_auth_complete_evt+0x2e0/0xa84 net/bluetooth/hci_event.c:3554 hci_event_func net/bluetooth/hci_event.c:7887 [inline] hci_event_packet+0x4e0/0x9c8 net/bluetooth/hci_event.c:7938 hci_rx_work+0x2f4/0xd78 net/bluetooth/hci_core.c:4087 process_one_work kernel/workqueue.c:3396 [inline] process_scheduled_works+0x91c/0x1250 kernel/workqueue.c:3479 worker_thread+0x798/0xbd0 kernel/workqueue.c:3560 kthread+0x304/0x3d4 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:854 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/4709: 4, last CPU#1: #0: ffff0000cd7e3140 ((wq_completion)hci2#2){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3371 [inline] #0: ffff0000cd7e3140 ((wq_completion)hci2#2){+.+.}-{0:0}, at: process_scheduled_works+0x8c8/0x1250 kernel/workqueue.c:3479 #1: ffff800098c77c20 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3371 [inline] #1: ffff800098c77c20 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_scheduled_works+0x8d0/0x1250 kernel/workqueue.c:3479 #2: ffff0000d72200b8 (&hdev->lock){+.+.}-{4:4}, at: hci_auth_complete_evt+0x94/0xa84 net/bluetooth/hci_event.c:3522 #3: ffff80008abeefa0 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_auth_cfm include/net/bluetooth/hci_core.h:2200 [inline] #3: ffff80008abeefa0 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_auth_complete_evt+0x27c/0xa84 net/bluetooth/hci_event.c:3554 stack backtrace: CPU: 1 UID: 0 PID: 4709 Comm: kworker/u9:1 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/23/2026 Workqueue: hci2 hci_rx_work dump_backtrace(regs = 0000000000000000 tsk = 0000000000000000) Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 print_circular_bug+0x328/0x330 kernel/locking/lockdep.c:2087 check_noncircular+0x158/0x174 kernel/locking/lockdep.c:2219 check_prev_add kernel/locking/lockdep.c:3209 [inline] check_prevs_add kernel/locking/lockdep.c:3328 [inline] validate_chain kernel/locking/lockdep.c:3952 [inline] __lock_acquire+0x1660/0x2b08 kernel/locking/lockdep.c:5288 lock_acquire+0x13c/0x320 kernel/locking/lockdep.c:5942 __mutex_lock_common kernel/locking/mutex.c:646 [inline] __mutex_lock+0x164/0x1078 kernel/locking/mutex.c:821 mutex_lock_nested+0x24/0x30 kernel/locking/mutex.c:874 rfcomm_security_cfm+0x54/0x4c8 net/bluetooth/rfcomm/core.c:2223 hci_auth_cfm include/net/bluetooth/hci_core.h:2203 [inline] hci_auth_complete_evt+0x2e0/0xa84 net/bluetooth/hci_event.c:3554 hci_event_func net/bluetooth/hci_event.c:7887 [inline] hci_event_packet+0x4e0/0x9c8 net/bluetooth/hci_event.c:7938 hci_rx_work+0x2f4/0xd78 net/bluetooth/hci_core.c:4087 process_one_work kernel/workqueue.c:3396 [inline] process_scheduled_works+0x91c/0x1250 kernel/workqueue.c:3479 worker_thread+0x798/0xbd0 kernel/workqueue.c:3560 kthread+0x304/0x3d4 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:854 hcon 0000000058cca775 orig refcnt 0 hcon 0000000058cca775 orig refcnt 1 kcov: kcov_move_area: ffff8000acc07000 1048576 <= ffff8000a8de5000 190818 Bluetooth: hci3: Controller not accepting commands anymore: ncmd = 0 Bluetooth: hci3: Injecting HCI hardware error event hci3 hci3 Event packet hci3: event 0x10 hci3: code 0x00 hci3 orig refcnt 14 hci3 Bluetooth: hci3: hardware error 0x00 hci3 0000000095ef04a1 hci3: hci3: err 0x13 hci3: cancelling interleave scan All LE pending actions cleared hdev hci3 hcon 000000009101990c reason 22 hcon 000000009101990c conn 00000000dd793a6f, err 103 hci3 hcon 000000009101990c chan 00000000c3dfb473 hci3 hcon 000000009101990c handle 200 hci3: hcon 000000009101990c hcon 000000009101990c hci3: conn 000000009101990c device: 'hci3:200': device_unregister kernfs runtime_status: removing kernfs control: removing kernfs runtime_suspended_time: removing kernfs runtime_active_time: removing kernfs autosuspend_delay_ms: removing kernfs power: removing kernfs device: removing kernfs subsystem: removing kernfs hci3:200: removing kernfs uevent: removing PM: Removing info for No Bus:hci3:200 kobject: 'hci3:200' (00000000cf315261): kobject_uevent_env kobject: 'hci3:200' (00000000cf315261): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/hci3:200' kernfs hci3:200: removing kobject: 'hci3:200' (00000000cf315261): kobject_cleanup, parent 0000000000000000 kobject: 'hci3:200' (00000000cf315261): calling ktype release kobject: 'hci3:200': free name hci3 orig refcnt 12 hcon 000000003011f386 reason 22 hcon 000000003011f386 conn 0000000088c44297, err 103 hci3 hcon 000000003011f386 chan 00000000662a3717 hci3 hcon 000000003011f386 handle 201 hci3: hcon 000000003011f386 hcon 000000003011f386 hci3: conn 000000003011f386 device: 'hci3:201': device_unregister kernfs runtime_status: removing kernfs control: removing kernfs runtime_suspended_time: removing kernfs runtime_active_time: removing kernfs autosuspend_delay_ms: removing kernfs power: removing kernfs device: removing kernfs subsystem: removing kernfs hci3:201: removing kernfs uevent: removing PM: Removing info for No Bus:hci3:201 kobject: 'hci3:201' (00000000317f5437): kobject_uevent_env kobject: 'hci3:201' (00000000317f5437): fill_kobj_path: path = '/devices/virtual/bluetooth/hci3/hci3:201' kernfs hci3:201: removing kobject: 'hci3:201' (00000000317f5437): kobject_cleanup, parent 0000000000000000 kobject: 'hci3:201' (00000000317f5437): calling ktype release kobject: 'hci3:201': free name hci3 orig refcnt 8 hdev hci3 event 4 hdev 0000000000000000 len 8 hci3: Cleanup of MSFT extension hdev hci3 event 8 hci3 orig refcnt 7 hci3 0000000095ef04a1 hci3: hci3: Updating devcoredump state from IDLE to IDLE. hdev hci3 event 7 hci3: hci3: hdev hci3 event 9 hci3: hci3: Opcode 0x0c03 hci3: opcode 0x0c03 plen 0 hci3: skb len 3 hci3: length 1 hci3: end: err -110 Bluetooth: hci3: Opcode 0x0c03 failed: -110 hdev hci3 event 8 hci3 orig refcnt 6 hcon 0000000058cca775 state BT_CONNECTED hcon 0000000058cca775 hci2: handle 0xc9 reason 0x13 hci2: hci2: entry 000000001cf8d8e9 hci2: Opcode 0x0406 hci2: opcode 0x0406 plen 3 hci2: skb len 6 hci2: length 1 hci2: end: err -110 hci2: status 0x13 hcon 0000000058cca775 bdaddr 11:aa:aa:aa:aa:aa status 19 hcon 0000000058cca775 conn 000000007ea7bf51, err 104 hci2 hcon 0000000058cca775 chan 00000000a3b27996 hci2 hcon 0000000058cca775 handle 201 hci2: hcon 0000000058cca775 hcon 0000000058cca775 hci2: conn 0000000058cca775 device: 'hci2:201': device_unregister kernfs runtime_status: removing kernfs control: removing kernfs runtime_suspended_time: removing kernfs runtime_active_time: removing kernfs autosuspend_delay_ms: removing kernfs power: removing kernfs device: removing kernfs subsystem: removing kernfs hci2:201: removing kernfs uevent: removing PM: Removing info for No Bus:hci2:201 kobject: 'hci2:201' (00000000282aa7f7): kobject_uevent_env kobject: 'hci2:201' (00000000282aa7f7): fill_kobj_path: path = '/devices/virtual/bluetooth/hci2/hci2:201' kernfs hci2:201: removing hci2 orig refcnt 12 kobject: 'hci2:201' (00000000282aa7f7): kobject_cleanup, parent 0000000000000000 kobject: 'hci2:201' (00000000282aa7f7): calling ktype release kobject: 'hci2:201': free name