summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
diff options
context:
space:
mode:
authorMichal Luczaj <mhal@rbox.co>2025-02-13 12:58:50 +0100
committerPaolo Abeni <pabeni@redhat.com>2025-02-18 12:00:01 +0100
commit857ae05549ee2542317e7084ecaa5f8536634dd9 (patch)
tree7be39d140f3ad13f7b8926196745c21c6d01cac2 /tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
parent8fb5bb169d17cdd12c2dcc2e96830ed487d77a0f (diff)
downloadlwn-857ae05549ee2542317e7084ecaa5f8536634dd9.tar.gz
lwn-857ae05549ee2542317e7084ecaa5f8536634dd9.zip
vsock/bpf: Warn on socket without transport
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>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sockmap_basic.c')
0 files changed, 0 insertions, 0 deletions