Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH 5.10.y 0/3] vsock: fix use-after free and null-ptr-deref
@ 2025-02-25 14:26 Luigi Leonardi
  2025-02-25 14:26 ` [PATCH 5.10.y 1/3] bpf, vsock: Invoke proto::close on close() Luigi Leonardi
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Luigi Leonardi @ 2025-02-25 14:26 UTC (permalink / raw)
  To: Stefano Garzarella, Michal Luczaj, stable
  Cc: Luigi Leonardi, Alexei Starovoitov, John Fastabend,
	Jakub Kicinski, syzbot+9d55b199192a4be7d02c

Hi all,

This series backports three upstream commits:
- 135ffc7 "bpf, vsock: Invoke proto::close on close()"
- fcdd224 "vsock: Keep the binding until socket destruction"
- 78dafe1 "vsock: Orphan socket after transport release"

Although this version of the kernel does not support sockmap, I think
backporting this patch can be useful to reduce conflicts in future
backports [1]. It does not harm the system. The comment it introduces in
the code can be misleading. I added some words in the commit to explain
the situation.

The other two commits are untouched, fixing a use-after free[2] and a
null-ptr-deref[3] respectively.

[1]https://lore.kernel.org/stable/f7lr3ftzo66sl6phlcygh4xx4spga4b6je37fhawjrsjtexzne@xhhwaqrjznlp/
[2]https://lore.kernel.org/all/20250128-vsock-transport-vs-autobind-v3-0-1cf57065b770@rbox.co/
[3]https://lore.kernel.org/all/20250210-vsock-linger-nullderef-v3-0-ef6244d02b54@rbox.co/

Cheers,
Luigi

To: Stefano Garzarella <sgarzare@redhat.com>
To: Michal Luczaj <mhal@rbox.co>
To: stable@vger.kernel.org

Signed-off-by: Luigi Leonardi <leonardi@redhat.com>
---
Michal Luczaj (3):
      bpf, vsock: Invoke proto::close on close()
      vsock: Keep the binding until socket destruction
      vsock: Orphan socket after transport release

 net/vmw_vsock/af_vsock.c | 77 +++++++++++++++++++++++++++++++-----------------
 1 file changed, 50 insertions(+), 27 deletions(-)
---
base-commit: f0a53361993a94f602df6f35e78149ad2ac12c89
change-id: 20250220-backport_fix_5_10-0ae85f834bc4

Best regards,
-- 
Luigi Leonardi <leonardi@redhat.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-03-06 12:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-25 14:26 [PATCH 5.10.y 0/3] vsock: fix use-after free and null-ptr-deref Luigi Leonardi
2025-02-25 14:26 ` [PATCH 5.10.y 1/3] bpf, vsock: Invoke proto::close on close() Luigi Leonardi
2025-02-25 14:26 ` [PATCH 5.10.y 2/3] vsock: Keep the binding until socket destruction Luigi Leonardi
2025-02-25 14:26 ` [PATCH 5.10.y 3/3] vsock: Orphan socket after transport release Luigi Leonardi
2025-03-06  9:21 ` [PATCH 5.10.y 0/3] vsock: fix use-after free and null-ptr-deref Luigi Leonardi
2025-03-06 12:40   ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox