====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Tainted: G L ------------------------------------------------------ kworker/u9:2/15949 is trying to acquire lock: ffffffff9183d6c0 (rfcomm_mutex){+.+.}-{4:4}, at: rfcomm_security_cfm+0x90/0x820 net/bluetooth/rfcomm/core.c:2277 but task is already holding lock: ffffffff91818240 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_encrypt_cfm+0x2a2/0x420 include/net/bluetooth/hci_core.h:2359 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+0x197/0x15a0 kernel/locking/mutex.c:821 hci_connect_cfm include/net/bluetooth/hci_core.h:2273 [inline] hci_remote_features_evt+0x53d/0x950 net/bluetooth/hci_event.c:4109 hci_event_func net/bluetooth/hci_event.c:8742 [inline] hci_event_packet+0x6cd/0xf10 net/bluetooth/hci_event.c:8793 hci_rx_work+0x2b4/0x1110 net/bluetooth/hci_core.c:4258 process_one_work kernel/workqueue.c:3511 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3594 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3675 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+0x197/0x15a0 kernel/locking/mutex.c:821 hci_release_dev+0x123/0x1510 net/bluetooth/hci_core.c:2846 bt_host_release+0x93/0xa0 net/bluetooth/hci_sysfs.c:100 device_release+0xc4/0x1f0 drivers/base/core.c:-1 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x222/0x550 lib/kobject.c:737 device_release+0xc4/0x1f0 drivers/base/core.c:-1 kobject_cleanup lib/kobject.c:689 [inline] kobject_release lib/kobject.c:720 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x222/0x550 lib/kobject.c:737 hci_conn_put include/net/bluetooth/hci_core.h:1759 [inline] l2cap_conn_free net/bluetooth/l2cap_core.c:2012 [inline] kref_put include/linux/kref.h:65 [inline] l2cap_conn_put net/bluetooth/l2cap_core.c:2025 [inline] l2cap_chan_destroy net/bluetooth/l2cap_core.c:510 [inline] kref_put include/linux/kref.h:65 [inline] l2cap_chan_put+0x1fd/0x350 net/bluetooth/l2cap_core.c:537 l2cap_sock_release+0x1a2/0x230 net/bluetooth/l2cap_sock.c:1562 __sock_release net/socket.c:735 [inline] sock_release+0x85/0x150 net/socket.c:763 rfcomm_session_del+0x14b/0x270 net/bluetooth/rfcomm/core.c:782 rfcomm_process_sessions+0x7456/0x9690 net/bluetooth/rfcomm/core.c:-1 rfcomm_run+0x3f5/0x620 net/bluetooth/rfcomm/core.c:2259 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 -> #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+0x164c/0x2de0 kernel/locking/lockdep.c:5288 lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942 __mutex_lock_common kernel/locking/mutex.c:646 [inline] __mutex_lock+0x197/0x15a0 kernel/locking/mutex.c:821 rfcomm_security_cfm+0x90/0x820 net/bluetooth/rfcomm/core.c:2277 hci_encrypt_cfm+0x30d/0x420 include/net/bluetooth/hci_core.h:2362 hci_conn_enc_key_size_set+0x45d/0x670 net/bluetooth/hci_event.c:783 hci_cc_read_enc_key_size+0xc8/0x1f0 net/bluetooth/hci_event.c:815 hci_cc_func net/bluetooth/hci_event.c:4821 [inline] hci_cmd_complete_evt+0x53a/0xa90 net/bluetooth/hci_event.c:4838 hci_event_func net/bluetooth/hci_event.c:8739 [inline] hci_event_packet+0x67a/0xf10 net/bluetooth/hci_event.c:8793 hci_rx_work+0x2b4/0x1110 net/bluetooth/hci_core.c:4258 process_one_work kernel/workqueue.c:3511 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3594 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3675 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:2/15949: 4, on CPU#0: #0: ffff888076f22150 ((wq_completion)hci2#2){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #0: ffff888076f22150 ((wq_completion)hci2#2){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffff888076f22150 ((wq_completion)hci2#2){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3476 [inline] #0: ffff888076f22150 ((wq_completion)hci2#2){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3594 #1: ffffc9000346fc40 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:309 [inline] #1: ffffc9000346fc40 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #1: ffffc9000346fc40 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3476 [inline] #1: ffffc9000346fc40 ((work_completion)(&hdev->rx_work)){+.+.}-{0:0}, at: process_scheduled_works+0x97a/0x1630 kernel/workqueue.c:3594 #2: ffff88805a4980b8 (&hdev->lock){+.+.}-{4:4}, at: hci_cc_read_enc_key_size+0x87/0x1f0 net/bluetooth/hci_event.c:807 #3: ffffffff91818240 (hci_cb_list_lock){+.+.}-{4:4}, at: hci_encrypt_cfm+0x2a2/0x420 include/net/bluetooth/hci_core.h:2359 stack backtrace: CPU: 0 UID: 0 PID: 15949 Comm: kworker/u9:2 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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:2087 check_noncircular+0x12f/0x150 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+0x164c/0x2de0 kernel/locking/lockdep.c:5288 lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942 __mutex_lock_common kernel/locking/mutex.c:646 [inline] __mutex_lock+0x197/0x15a0 kernel/locking/mutex.c:821 rfcomm_security_cfm+0x90/0x820 net/bluetooth/rfcomm/core.c:2277 hci_encrypt_cfm+0x30d/0x420 include/net/bluetooth/hci_core.h:2362 hci_conn_enc_key_size_set+0x45d/0x670 net/bluetooth/hci_event.c:783 hci_cc_read_enc_key_size+0xc8/0x1f0 net/bluetooth/hci_event.c:815 hci_cc_func net/bluetooth/hci_event.c:4821 [inline] hci_cmd_complete_evt+0x53a/0xa90 net/bluetooth/hci_event.c:4838 hci_event_func net/bluetooth/hci_event.c:8739 [inline] hci_event_packet+0x67a/0xf10 net/bluetooth/hci_event.c:8793 hci_rx_work+0x2b4/0x1110 net/bluetooth/hci_core.c:4258 process_one_work kernel/workqueue.c:3511 [inline] process_scheduled_works+0xc3d/0x1630 kernel/workqueue.c:3594 worker_thread+0xa47/0xfb0 kernel/workqueue.c:3675 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