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>
-
mentioned in commit 50ee5301
-
mentioned in commit 82679fe7
-
mentioned in commit 685db0d6
-
mentioned in commit e6a65873
-
mentioned in commit 9e70eaad
-
mentioned in commit b0f096e0
-
mentioned in commit 7b2aac96
-
mentioned in commit 4ae2f1d3
-
mentioned in commit 8c3f8ce6
-
mentioned in commit 41293182
-
mentioned in commit 7e8bad54
-
mentioned in commit 2c2128db
-
mentioned in commit 633a89de
-
mentioned in commit dcc12981
-
mentioned in commit ff09c88a
-
mentioned in commit 48584602
-
mentioned in commit 92a01146
-
mentioned in commit 0429b371
-
mentioned in commit f4cc40c8
-
mentioned in commit e0b917ea
-
mentioned in commit 6ae7c93e
-
mentioned in commit b7156c9d
-
mentioned in commit 91630968
-
mentioned in commit 9604e9d7
-
mentioned in commit 581318f6
-
mentioned in commit 986acb3c
-
mentioned in commit 861fdaf0
-
mentioned in commit c9a60f6f
-
mentioned in commit d0017ff7
-
mentioned in commit c9335db2
-
mentioned in commit e2647b0f
-
mentioned in commit a4fc1bef
-
mentioned in commit 4583b968
-
mentioned in commit dc86096b
-
mentioned in commit c85f9f4e
-
mentioned in commit b0ee0a50
-
mentioned in commit 71404332
-
mentioned in commit 3f08b79a
-
mentioned in commit 15909267