diff options
| author | Michal Luczaj <[email protected]> | 2025-02-13 11:58:51 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2025-02-18 11:00:01 +0000 |
| commit | 8350695bfb169b1924626a68f76b369ad01f18f2 (patch) | |
| tree | 66ac6fc2c53bf050cf78ee17d6e8933efc022c85 /net/unix/af_unix.c | |
| parent | vsock/bpf: Warn on socket without transport (diff) | |
| download | kernel-8350695bfb169b1924626a68f76b369ad01f18f2.tar.gz kernel-8350695bfb169b1924626a68f76b369ad01f18f2.zip | |
selftest/bpf: Adapt vsock_delete_on_close to sockmap rejecting unconnected
Commit 515745445e92 ("selftest/bpf: Add test for vsock removal from sockmap
on close()") added test that checked if proto::close() callback was invoked
on AF_VSOCK socket release. I.e. it verified that a close()d vsock does
indeed get removed from the sockmap.
It was done simply by creating a socket pair and attempting to replace a
close()d one with its peer. Since, due to a recent change, sockmap does not
allow updating index with a non-established connectible vsock, redo it with
a freshly established one.
Signed-off-by: Michal Luczaj <[email protected]>
Acked-by: Stefano Garzarella <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
