====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Tainted: G L ------------------------------------------------------ krfcommd/2841 is trying to acquire lock: ffff0000ca0a5940 ((wq_completion)hci4#2){+.+.}-{0:0}, at: touch_wq_lockdep_map+0xac/0x15c kernel/workqueue.c:4111 but task is already holding lock: ffff80008ac23520 (rfcomm_mutex){+.+.}-{4:4}, at: rfcomm_process_sessions net/bluetooth/rfcomm/core.c:2152 [inline] ffff80008ac23520 (rfcomm_mutex){+.+.}-{4:4}, at: rfcomm_run+0x35c/0x4c98 net/bluetooth/rfcomm/core.c:2261 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #4 (rfcomm_mutex){+.+.}-{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 rfcomm_security_cfm+0x54/0x4c8 net/bluetooth/rfcomm/core.c:2279 hci_encrypt_cfm+0x30c/0x44c include/net/bluetooth/hci_core.h:2243 hci_encrypt_change_evt+0x4b4/0xb48 net/bluetooth/hci_event.c:3674 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 -> #3 (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 -> #2 (&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 hci_send_cmd_sync net/bluetooth/hci_core.c:4118 [inline] hci_cmd_work+0x8c/0x72c net/bluetooth/hci_core.c:4167 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 ((work_completion)(&hdev->cmd_work)){+.+.}-{0:0}: process_one_work kernel/workqueue.c:3372 [inline] process_scheduled_works+0x8f0/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 -> #0 ((wq_completion)hci4#2){+.+.}-{0:0}: 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 touch_wq_lockdep_map+0xb4/0x15c kernel/workqueue.c:4111 __flush_workqueue+0x114/0xd74 kernel/workqueue.c:4153 drain_workqueue+0xa4/0x310 kernel/workqueue.c:4317 destroy_workqueue+0xb4/0x708 kernel/workqueue.c:6155 hci_release_dev+0xa8/0x3f8 net/bluetooth/hci_core.c:2728 bt_host_release+0x7c/0x98 net/bluetooth/hci_sysfs.c:100 device_release+0xb4/0x1d4 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+0x1dc/0x4b8 lib/kobject.c:737 put_device+0x28/0x40 drivers/base/core.c:3884 bt_link_release+0x50/0x60 net/bluetooth/hci_sysfs.c:19 device_release+0xb4/0x1d4 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+0x1dc/0x4b8 lib/kobject.c:737 put_device+0x28/0x40 drivers/base/core.c:3884 hci_conn_put include/net/bluetooth/hci_core.h:1690 [inline] l2cap_conn_free net/bluetooth/l2cap_core.c:1856 [inline] kref_put include/linux/kref.h:65 [inline] l2cap_conn_put+0x80/0xec net/bluetooth/l2cap_core.c:1869 l2cap_chan_destroy net/bluetooth/l2cap_core.c:494 [inline] kref_put include/linux/kref.h:65 [inline] l2cap_chan_put+0x18c/0x2ac net/bluetooth/l2cap_core.c:521 l2cap_sock_release+0x17c/0x208 net/bluetooth/l2cap_sock.c:1533 __sock_release+0xf8/0x1d4 net/socket.c:735 sock_release+0x24/0x34 net/socket.c:763 rfcomm_session_del+0x130/0x1d4 net/bluetooth/rfcomm/core.c:782 rfcomm_session_close+0xf0/0x168 net/bluetooth/rfcomm/core.c:821 rfcomm_process_sessions net/bluetooth/rfcomm/core.c:-1 [inline] rfcomm_run+0x3a50/0x4c98 net/bluetooth/rfcomm/core.c:2261 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: (wq_completion)hci4#2 --> hci_cb_list_lock --> rfcomm_mutex Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(rfcomm_mutex); lock(hci_cb_list_lock); lock(rfcomm_mutex); lock((wq_completion)hci4#2); *** DEADLOCK *** locks held by krfcommd/2841: 1, last CPU#0: #0: ffff80008ac23520 (rfcomm_mutex){+.+.}-{4:4}, at: rfcomm_process_sessions net/bluetooth/rfcomm/core.c:2152 [inline] #0: ffff80008ac23520 (rfcomm_mutex){+.+.}-{4:4}, at: rfcomm_run+0x35c/0x4c98 net/bluetooth/rfcomm/core.c:2261 stack backtrace: CPU: 0 UID: 0 PID: 2841 Comm: krfcommd Tainted: G L syzkaller #0 PREEMPT Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/23/2026 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 touch_wq_lockdep_map+0xb4/0x15c kernel/workqueue.c:4111 __flush_workqueue+0x114/0xd74 kernel/workqueue.c:4153 drain_workqueue+0xa4/0x310 kernel/workqueue.c:4317 destroy_workqueue+0xb4/0x708 kernel/workqueue.c:6155 hci_release_dev+0xa8/0x3f8 net/bluetooth/hci_core.c:2728 bt_host_release+0x7c/0x98 net/bluetooth/hci_sysfs.c:100 device_release+0xb4/0x1d4 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+0x1dc/0x4b8 lib/kobject.c:737 put_device+0x28/0x40 drivers/base/core.c:3884 bt_link_release+0x50/0x60 net/bluetooth/hci_sysfs.c:19 device_release+0xb4/0x1d4 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+0x1dc/0x4b8 lib/kobject.c:737 put_device+0x28/0x40 drivers/base/core.c:3884 hci_conn_put include/net/bluetooth/hci_core.h:1690 [inline] l2cap_conn_free net/bluetooth/l2cap_core.c:1856 [inline] kref_put include/linux/kref.h:65 [inline] l2cap_conn_put+0x80/0xec net/bluetooth/l2cap_core.c:1869 l2cap_chan_destroy net/bluetooth/l2cap_core.c:494 [inline] kref_put include/linux/kref.h:65 [inline] l2cap_chan_put+0x18c/0x2ac net/bluetooth/l2cap_core.c:521 l2cap_sock_release+0x17c/0x208 net/bluetooth/l2cap_sock.c:1533 __sock_release+0xf8/0x1d4 net/socket.c:735 sock_release+0x24/0x34 net/socket.c:763 rfcomm_session_del+0x130/0x1d4 net/bluetooth/rfcomm/core.c:782 rfcomm_session_close+0xf0/0x168 net/bluetooth/rfcomm/core.c:821 rfcomm_process_sessions net/bluetooth/rfcomm/core.c:-1 [inline] rfcomm_run+0x3a50/0x4c98 net/bluetooth/rfcomm/core.c:2261 kthread+0x304/0x3d4 kernel/kthread.c:436 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:854