]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vsock/bpf: Warn on socket without transport
authorMichal Luczaj <mhal@rbox.co>
Thu, 13 Feb 2025 11:58:50 +0000 (12:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Feb 2025 12:30:17 +0000 (04:30 -0800)
commit478a46f1122f0830392bef2a46a8d91d8abc354e
tree30e0fa216f2809c08fd5c6a57aad953e7a4a0410
parent22b683217ad2112791a708693cb236507abd637a
vsock/bpf: Warn on socket without transport

[ Upstream commit 857ae05549ee2542317e7084ecaa5f8536634dd9 ]

In the spirit of commit 91751e248256 ("vsock: prevent null-ptr-deref in
vsock_*[has_data|has_space]"), armorize the "impossible" cases with a
warning.

Fixes: 634f1a7110b4 ("vsock: support sockmap")
Signed-off-by: Michal Luczaj <mhal@rbox.co>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/vmw_vsock/af_vsock.c
net/vmw_vsock/vsock_bpf.c