diff options
| author | Michal Luczaj <[email protected]> | 2024-11-18 21:03:43 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2024-11-25 22:19:14 +0000 |
| commit | 135ffc7becc82cfb84936ae133da7969220b43b2 (patch) | |
| tree | c18f2b0ecceb99b8b2566a711c69d6db6c351c6e /tools/testing/selftests/bpf/prog_tests/sockmap_basic.c | |
| parent | selftest/bpf: Add test for af_vsock poll() (diff) | |
| download | kernel-135ffc7becc82cfb84936ae133da7969220b43b2.tar.gz kernel-135ffc7becc82cfb84936ae133da7969220b43b2.zip | |
bpf, vsock: Invoke proto::close on close()
vsock defines a BPF callback to be invoked when close() is called. However,
this callback is never actually executed. As a result, a closed vsock
socket is not automatically removed from the sockmap/sockhash.
Introduce a dummy vsock_close() and make vsock_release() call proto::close.
Note: changes in __vsock_release() look messy, but it's only due to indent
level reduction and variables xmas tree reorder.
Fixes: 634f1a7110b4 ("vsock: support sockmap")
Signed-off-by: Michal Luczaj <[email protected]>
Reviewed-by: Stefano Garzarella <[email protected]>
Reviewed-by: Luigi Leonardi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: John Fastabend <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sockmap_basic.c')
0 files changed, 0 insertions, 0 deletions
