============================================ WARNING: possible recursive locking detected 6.8.0-rc4-syzkaller-g7e90b5c295ec #0 Not tainted -------------------------------------------- syz-executor.0/6381 is trying to acquire lock: ffffffff8ea63598 (qp_broker_list.mutex){+.+.}-{3:3}, at: vmci_qp_broker_detach+0xf5/0x1220 drivers/misc/vmw_vmci/vmci_queue_pair.c:2095 but task is already holding lock: ffffffff8ea63598 (qp_broker_list.mutex){+.+.}-{3:3}, at: vmci_qp_broker_detach+0xf5/0x1220 drivers/misc/vmw_vmci/vmci_queue_pair.c:2095 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(qp_broker_list.mutex); lock(qp_broker_list.mutex); *** DEADLOCK *** May be due to missing lock nesting notation 1 lock held by syz-executor.0/6381: #0: ffffffff8ea63598 (qp_broker_list.mutex){+.+.}-{3:3}, at: vmci_qp_broker_detach+0xf5/0x1220 drivers/misc/vmw_vmci/vmci_queue_pair.c:2095 stack backtrace: CPU: 0 PID: 6381 Comm: syz-executor.0 Not tainted 6.8.0-rc4-syzkaller-g7e90b5c295ec #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2e0 lib/dump_stack.c:106 check_deadlock kernel/locking/lockdep.c:3062 [inline] validate_chain+0x15c0/0x58e0 kernel/locking/lockdep.c:3856 __lock_acquire+0x1345/0x1fd0 kernel/locking/lockdep.c:5137 lock_acquire+0x1e3/0x530 kernel/locking/lockdep.c:5754 __mutex_lock_common kernel/locking/mutex.c:608 [inline] __mutex_lock+0x136/0xd70 kernel/locking/mutex.c:752 vmci_qp_broker_detach+0xf5/0x1220 drivers/misc/vmw_vmci/vmci_queue_pair.c:2095 ctx_free_ctx drivers/misc/vmw_vmci/vmci_context.c:444 [inline] kref_put include/linux/kref.h:65 [inline] vmci_ctx_put+0x804/0xe40 drivers/misc/vmw_vmci/vmci_context.c:497 vmci_context_get_priv_flags+0x5b/0x90 drivers/misc/vmw_vmci/vmci_context.c:1185 dg_dispatch_as_host drivers/misc/vmw_vmci/vmci_datagram.c:255 [inline] vmci_datagram_dispatch+0x46e/0xbe0 drivers/misc/vmw_vmci/vmci_datagram.c:339 qp_notify_peer drivers/misc/vmw_vmci/vmci_queue_pair.c:1481 [inline] vmci_qp_broker_detach+0xb5d/0x1220 drivers/misc/vmw_vmci/vmci_queue_pair.c:2188 ctx_free_ctx drivers/misc/vmw_vmci/vmci_context.c:444 [inline] kref_put include/linux/kref.h:65 [inline] vmci_ctx_put+0x804/0xe40 drivers/misc/vmw_vmci/vmci_context.c:497 vmci_host_close+0x9b/0x160 drivers/misc/vmw_vmci/vmci_host.c:143 __fput+0x429/0x8a0 fs/file_table.c:376 task_work_run+0x24e/0x310 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:108 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:201 [inline] syscall_exit_to_user_mode+0x167/0x370 kernel/entry/common.c:212 do_syscall_64+0x108/0x240 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x456c29 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b4 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fa73a77b0d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000124 RAX: 0000000000000003 RBX: 000000000055bf60 RCX: 0000000000456c29 RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000004 RBP: 00000000004b09d6 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004affcd R13: 000000000000000b R14: 000000000055bf60 R15: 0000000000a8fa68