============================================
WARNING: possible recursive locking detected
syzkaller #0 Tainted: G L
--------------------------------------------
syz.8.3082/18792 is trying to acquire lock:
ffffffff8ebbfd68 (qp_broker_list.mutex){+.+.}-{4:4}, at: vmci_qp_broker_detach+0xe9/0xeb0 drivers/misc/vmw_vmci/vmci_queue_pair.c:2095
but task is already holding lock:
ffffffff8ebbfd68 (qp_broker_list.mutex){+.+.}-{4:4}, at: qp_broker_alloc+0x19f/0x2080 drivers/misc/vmw_vmci/vmci_queue_pair.c:1731
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
locks held by syz.8.3082/18792: 1, last CPU#0:
#0: ffffffff8ebbfd68 (qp_broker_list.mutex){+.+.}-{4:4}, at: qp_broker_alloc+0x19f/0x2080 drivers/misc/vmw_vmci/vmci_queue_pair.c:1731
stack backtrace:
CPU: 0 UID: 0 PID: 18792 Comm: syz.8.3082 Tainted: G L syzkaller #0 PREEMPT_{RT,(full)}
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_deadlock_bug+0x27a/0x290 kernel/locking/lockdep.c:3085
check_deadlock kernel/locking/lockdep.c:3137 [inline]
validate_chain kernel/locking/lockdep.c:3939 [inline]
__lock_acquire+0x25db/0x2de0 kernel/locking/lockdep.c:5288
lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942
__mutex_lock_common kernel/locking/rtmutex_api.c:561 [inline]
mutex_lock_nested+0x5a/0x1d0 kernel/locking/rtmutex_api.c:580
vmci_qp_broker_detach+0xe9/0xeb0 drivers/misc/vmw_vmci/vmci_queue_pair.c:2095
ctx_free_ctx drivers/misc/vmw_vmci/vmci_context.c:424 [inline]
kref_put include/linux/kref.h:65 [inline]
vmci_ctx_put+0x619/0xc00 drivers/misc/vmw_vmci/vmci_context.c:477
vmci_ctx_enqueue_datagram+0x3c3/0x440 drivers/misc/vmw_vmci/vmci_context.c:340
dg_dispatch_as_host drivers/misc/vmw_vmci/vmci_datagram.c:276 [inline]
vmci_datagram_dispatch+0x450/0xc80 drivers/misc/vmw_vmci/vmci_datagram.c:340
qp_notify_peer+0x161/0x210 drivers/misc/vmw_vmci/vmci_queue_pair.c:1481
qp_broker_attach drivers/misc/vmw_vmci/vmci_queue_pair.c:1664 [inline]
qp_broker_alloc+0x1901/0x2080 drivers/misc/vmw_vmci/vmci_queue_pair.c:1752
vmci_qp_broker_alloc+0x92/0xc0 drivers/misc/vmw_vmci/vmci_queue_pair.c:1942
vmci_host_do_alloc_queuepair drivers/misc/vmw_vmci/vmci_host.c:495 [inline]
vmci_host_unlocked_ioctl+0x14bf/0x2850 drivers/misc/vmw_vmci/vmci_host.c:934
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:597 [inline]
__se_sys_ioctl+0xff/0x170 fs/ioctl.c:583
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fdd4f6ce159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fdd4d926028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fdd4f955fa0 RCX: 00007fdd4f6ce159
RDX: 0000200000000540 RSI: 00000000000007a8 RDI: 0000000000000004
RBP: 00007fdd4f76503b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fdd4f956038 R14: 00007fdd4f955fa0 R15: 00007fff7bb15bf8
------------[ cut here ]------------
rtmutex deadlock detected
WARNING: kernel/locking/rtmutex.c:1698 at rt_mutex_handle_deadlock+0x21/0xb0 kernel/locking/rtmutex.c:1698, CPU#0: syz.8.3082/18792
Modules linked in:
CPU: 0 UID: 0 PID: 18792 Comm: syz.8.3082 Tainted: G L syzkaller #0 PREEMPT_{RT,(full)}
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:rt_mutex_handle_deadlock+0x21/0xb0 kernel/locking/rtmutex.c:1698
Code: 90 90 90 90 90 90 90 90 90 41 57 41 56 41 55 41 54 53 83 ff dd 0f 85 81 00 00 00 48 89 f7 e8 16 41 01 00 48 8d 3d bf 63 5c 04 <67> 48 0f b9 3a 4c 8d 3d 00 00 00 00 65 48 8b 1d 63 55 4c 07 4c 8d
RSP: 0018:ffffc900044b71f0 EFLAGS: 00010286
RAX: 8000000000000000 RBX: 00000000ffffffdd RCX: ffffffff99ae3501
RDX: 0000000000000001 RSI: ffffffff8bcc2260 RDI: ffffffff8fb4fe50
RBP: ffffc900044b73a0 R08: ffffffff8fb1e77f R09: 1ffffffff1f63cef
R10: dffffc0000000000 R11: fffffbfff1f63cf0 R12: 1ffff92000896e4c
R13: ffffffff8b5894d2 R14: ffffffff8ebbfd10 R15: dffffc0000000000
FS: 00007fdd4d9266c0(0000) GS:ffff888125bd1000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc3bae507e8 CR3: 0000000078694000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000006800 DR2: 0000000000009951
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
__rt_mutex_slowlock kernel/locking/rtmutex.c:1760 [inline]
__rt_mutex_slowlock_locked kernel/locking/rtmutex.c:1787 [inline]
rt_mutex_slowlock+0x73e/0x780 kernel/locking/rtmutex.c:1827
__rt_mutex_lock kernel/locking/rtmutex.c:1842 [inline]
__mutex_lock_common kernel/locking/rtmutex_api.c:562 [inline]
mutex_lock_nested+0x168/0x1d0 kernel/locking/rtmutex_api.c:580
vmci_qp_broker_detach+0xe9/0xeb0 drivers/misc/vmw_vmci/vmci_queue_pair.c:2095
ctx_free_ctx drivers/misc/vmw_vmci/vmci_context.c:424 [inline]
kref_put include/linux/kref.h:65 [inline]
vmci_ctx_put+0x619/0xc00 drivers/misc/vmw_vmci/vmci_context.c:477
vmci_ctx_enqueue_datagram+0x3c3/0x440 drivers/misc/vmw_vmci/vmci_context.c:340
dg_dispatch_as_host drivers/misc/vmw_vmci/vmci_datagram.c:276 [inline]
vmci_datagram_dispatch+0x450/0xc80 drivers/misc/vmw_vmci/vmci_datagram.c:340
qp_notify_peer+0x161/0x210 drivers/misc/vmw_vmci/vmci_queue_pair.c:1481
qp_broker_attach drivers/misc/vmw_vmci/vmci_queue_pair.c:1664 [inline]
qp_broker_alloc+0x1901/0x2080 drivers/misc/vmw_vmci/vmci_queue_pair.c:1752
vmci_qp_broker_alloc+0x92/0xc0 drivers/misc/vmw_vmci/vmci_queue_pair.c:1942
vmci_host_do_alloc_queuepair drivers/misc/vmw_vmci/vmci_host.c:495 [inline]
vmci_host_unlocked_ioctl+0x14bf/0x2850 drivers/misc/vmw_vmci/vmci_host.c:934
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:597 [inline]
__se_sys_ioctl+0xff/0x170 fs/ioctl.c:583
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fdd4f6ce159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fdd4d926028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fdd4f955fa0 RCX: 00007fdd4f6ce159
RDX: 0000200000000540 RSI: 00000000000007a8 RDI: 0000000000000004
RBP: 00007fdd4f76503b R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fdd4f956038 R14: 00007fdd4f955fa0 R15: 00007fff7bb15bf8
----------------
Code disassembly (best guess):
0: 90 nop
1: 90 nop
2: 90 nop
3: 90 nop
4: 90 nop
5: 90 nop
6: 90 nop
7: 90 nop
8: 90 nop
9: 41 57 push %r15
b: 41 56 push %r14
d: 41 55 push %r13
f: 41 54 push %r12
11: 53 push %rbx
12: 83 ff dd cmp $0xffffffdd,%edi
15: 0f 85 81 00 00 00 jne 0x9c
1b: 48 89 f7 mov %rsi,%rdi
1e: e8 16 41 01 00 call 0x14139
23: 48 8d 3d bf 63 5c 04 lea 0x45c63bf(%rip),%rdi # 0x45c63e9
* 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction
2f: 4c 8d 3d 00 00 00 00 lea 0x0(%rip),%r15 # 0x36
36: 65 48 8b 1d 63 55 4c mov %gs:0x74c5563(%rip),%rbx # 0x74c55a1
3d: 07
3e: 4c rex.WR
3f: 8d .byte 0x8d