bpf, vsock: Invoke proto::close on close()
commit 135ffc7b upstream. 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: 634f1a71 ("vsock: support sockmap") Signed-off-by:Michal Luczaj <mhal@rbox.co> Reviewed-by:
Stefano Garzarella <sgarzare@redhat.com> Reviewed-by:
Luigi Leonardi <leonardi@redhat.com> Link: https://lore.kernel.org/r/20241118-vsock-bpf-poll-close-v1-3-f1b9669cacdc@rbox.co Signed-off-by:
Alexei Starovoitov <ast@kernel.org> Acked-by:
John Fastabend <john.fastabend@gmail.com> [LL: There is no sockmap support for this kernel version. This patch has been backported because it helps reduce conflicts on future backports] Signed-off-by:
Luigi Leonardi <leonardi@redhat.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Loading
-
mentioned in commit 562ba867
-
mentioned in commit 9c64aa80
-
mentioned in commit dc48bd97
-
mentioned in commit 5f2873bd
-
mentioned in commit be9dbf86
-
mentioned in commit 28efaf87
-
mentioned in commit 9b32455e
-
mentioned in commit b9f456d1
-
mentioned in commit 1fcf2dc2
-
mentioned in commit cf36dd53
-
mentioned in commit fe39dcee
-
mentioned in commit ca0851bf
-
mentioned in commit 45f4e4c9
-
mentioned in commit f2b154db
Please sign in to comment