============================================
WARNING: possible recursive locking detected
syzkaller #0 Tainted: G L
--------------------------------------------
syz.0.1247/10133 is trying to acquire lock:
ffffffff8fddf708 (qp_broker_list.mutex){+.+.}-{4:4}, at: vmci_qp_broker_detach+0xe9/0xeb0 drivers/misc/vmw_vmci/vmci_queue_pair.c:2093
but task is already holding lock:
ffffffff8fddf708 (qp_broker_list.mutex){+.+.}-{4:4}, at: vmci_qp_broker_detach+0xe9/0xeb0 drivers/misc/vmw_vmci/vmci_queue_pair.c:2093
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.0.1247/10133: 1, on CPU#0:
#0: ffffffff8fddf708 (qp_broker_list.mutex){+.+.}-{4:4}, at: vmci_qp_broker_detach+0xe9/0xeb0 drivers/misc/vmw_vmci/vmci_queue_pair.c:2093
stack backtrace:
CPU: 0 UID: 0 PID: 10133 Comm: syz.0.1247 Tainted: G L syzkaller #0 PREEMPT_{RT,(full)}
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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+0x55/0x1d0 kernel/locking/rtmutex_api.c:580
vmci_qp_broker_detach+0xe9/0xeb0 drivers/misc/vmw_vmci/vmci_queue_pair.c:2093
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 drivers/misc/vmw_vmci/vmci_queue_pair.c:1479 [inline]
vmci_qp_broker_detach+0x87e/0xeb0 drivers/misc/vmw_vmci/vmci_queue_pair.c:2186
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_host_close+0x91/0x140 drivers/misc/vmw_vmci/vmci_host.c:143
__fput+0x41a/0xa70 fs/file_table.c:512
fput_close_sync+0x11f/0x240 fs/file_table.c:618
filp_close_sync fs/open.c:1574 [inline]
__do_sys_close fs/open.c:1597 [inline]
__se_sys_close+0xa2/0x160 fs/open.c:1584
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f05f7859559
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:00007f05f5aa6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 00007f05f7ad5fa0 RCX: 00007f05f7859559
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00007f05f78e8136 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f05f7ad6038 R14: 00007f05f7ad5fa0 R15: 00007ffd0d3ed478
------------[ 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.0.1247/10133
Modules linked in:
CPU: 0 UID: 0 PID: 10133 Comm: syz.0.1247 Tainted: G L syzkaller #0 PREEMPT_{RT,(full)}
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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 76 42 01 00 48 8d 3d 1f b4 5d 05 <67> 48 0f b9 3a 4c 8d 3d 00 00 00 00 65 48 8b 1d d3 c3 56 08 4c 8d
RSP: 0018:ffffc90004507530 EFLAGS: 00010286
RAX: 8000000000000000 RBX: 00000000ffffffdd RCX: ffffffff9adb4a01
RDX: 0000000000000001 RSI: ffffffff8bed2760 RDI: ffffffff90d8e040
RBP: ffffc900045076e0 R08: ffffffff90d5c8bf R09: 1ffffffff21ab917
R10: dffffc0000000000 R11: fffffbfff21ab918 R12: 1ffff920008a0eb4
R13: ffffffff8b7b2662 R14: ffffffff8fddf6b0 R15: dffffc0000000000
FS: 00007f05f5aa66c0(0000) GS:ffff888124701000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe66ba34283 CR3: 000000005ea4e000 CR4: 00000000003526f0
DR0: 0000000080000001 DR1: 0000000000000c7e DR2: 0000000000000008
DR3: 0000000000000001 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+0x163/0x1d0 kernel/locking/rtmutex_api.c:580
vmci_qp_broker_detach+0xe9/0xeb0 drivers/misc/vmw_vmci/vmci_queue_pair.c:2093
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 drivers/misc/vmw_vmci/vmci_queue_pair.c:1479 [inline]
vmci_qp_broker_detach+0x87e/0xeb0 drivers/misc/vmw_vmci/vmci_queue_pair.c:2186
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_host_close+0x91/0x140 drivers/misc/vmw_vmci/vmci_host.c:143
__fput+0x41a/0xa70 fs/file_table.c:512
fput_close_sync+0x11f/0x240 fs/file_table.c:618
filp_close_sync fs/open.c:1574 [inline]
__do_sys_close fs/open.c:1597 [inline]
__se_sys_close+0xa2/0x160 fs/open.c:1584
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f05f7859559
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:00007f05f5aa6028 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 00007f05f7ad5fa0 RCX: 00007f05f7859559
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00007f05f78e8136 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f05f7ad6038 R14: 00007f05f7ad5fa0 R15: 00007ffd0d3ed478
----------------
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 76 42 01 00 call 0x14299
23: 48 8d 3d 1f b4 5d 05 lea 0x55db41f(%rip),%rdi # 0x55db449
* 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 d3 c3 56 mov %gs:0x856c3d3(%rip),%rbx # 0x856c411
3d: 08
3e: 4c rex.WR
3f: 8d .byte 0x8d