============================================ WARNING: possible recursive locking detected 5.6.0-rc5-syzkaller #0 Not tainted -------------------------------------------- syz-executor.2/13606 is trying to acquire lock: ffffffff8b0fe8d0 (qp_broker_list.mutex){+.+.}, at: vmci_qp_broker_detach+0x122/0xe90 drivers/misc/vmw_vmci/vmci_queue_pair.c:2083 but task is already holding lock: ffffffff8b0fe8d0 (qp_broker_list.mutex){+.+.}, at: vmci_qp_broker_detach+0x122/0xe90 drivers/misc/vmw_vmci/vmci_queue_pair.c:2083 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.2/13606: #0: ffffffff8b0fe8d0 (qp_broker_list.mutex){+.+.}, at: vmci_qp_broker_detach+0x122/0xe90 drivers/misc/vmw_vmci/vmci_queue_pair.c:2083 stack backtrace: CPU: 1 PID: 13606 Comm: syz-executor.2 Not tainted 5.6.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x96/0xe0 lib/dump_stack.c:118 print_deadlock_bug kernel/locking/lockdep.c:2370 [inline] check_deadlock kernel/locking/lockdep.c:2411 [inline] validate_chain kernel/locking/lockdep.c:2954 [inline] __lock_acquire.cold.54+0x126/0x30e kernel/locking/lockdep.c:3954 lock_acquire+0x12e/0x360 kernel/locking/lockdep.c:4484 __mutex_lock_common kernel/locking/mutex.c:956 [inline] __mutex_lock+0x153/0x1400 kernel/locking/mutex.c:1103 vmci_qp_broker_detach+0x122/0xe90 drivers/misc/vmw_vmci/vmci_queue_pair.c:2083 ctx_free_ctx drivers/misc/vmw_vmci/vmci_context.c:444 [inline] kref_put include/linux/kref.h:65 [inline] vmci_ctx_put+0x4d8/0xce0 drivers/misc/vmw_vmci/vmci_context.c:497 vmci_ctx_enqueue_datagram+0x378/0x4a0 drivers/misc/vmw_vmci/vmci_context.c:360 dg_dispatch_as_host drivers/misc/vmw_vmci/vmci_datagram.c:275 [inline] vmci_datagram_dispatch drivers/misc/vmw_vmci/vmci_datagram.c:339 [inline] vmci_datagram_dispatch+0x279/0x920 drivers/misc/vmw_vmci/vmci_datagram.c:314 qp_notify_peer+0x1bd/0x210 drivers/misc/vmw_vmci/vmci_queue_pair.c:1472 vmci_qp_broker_detach+0x45a/0xe90 drivers/misc/vmw_vmci/vmci_queue_pair.c:2176 ctx_free_ctx drivers/misc/vmw_vmci/vmci_context.c:444 [inline] kref_put include/linux/kref.h:65 [inline] vmci_ctx_put+0x4d8/0xce0 drivers/misc/vmw_vmci/vmci_context.c:497 vmci_host_close+0xf3/0x180 drivers/misc/vmw_vmci/vmci_host.c:143 __fput+0x256/0x790 fs/file_table.c:280 task_work_run+0xd3/0x180 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x15d/0x200 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline] syscall_return_slowpath arch/x86/entry/common.c:278 [inline] do_syscall_64+0x4b1/0x560 arch/x86/entry/common.c:304 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x41926b Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44 RSP: 002b:00007fff43c05d90 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 000000000041926b RDX: 0000000000570698 RSI: 0000000000000001 RDI: 0000000000000003 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000001b2e0200a8 R10: 00007fff43c05e80 R11: 0000000000000293 R12: 000000000005f415 R13: 00000000000003e8 R14: 000000000056bf60 R15: 000000000005f3f9