Commit 4328279c authored by Michal Luczaj's avatar Michal Luczaj Committed by Greg Kroah-Hartman
Browse files

vsock: Fix IOCTL_VM_SOCKETS_GET_LOCAL_CID to check also `transport_local`



[ Upstream commit 1e7d9df3 ]

Support returning VMADDR_CID_LOCAL in case no other vsock transport is
available.

Fixes: 0e121905 ("vsock: add local transport support in the vsock core")
Suggested-by: default avatarStefano Garzarella <sgarzare@redhat.com>
Reviewed-by: default avatarStefano Garzarella <sgarzare@redhat.com>
Signed-off-by: default avatarMichal Luczaj <mhal@rbox.co>
Link: https://patch.msgid.link/20250703-vsock-transports-toctou-v4-3-98f0eb530747@rbox.co


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8667e8d0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment