All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] vsock: fix use-after free and null-ptr-deref
@ 2025-02-14 17:53 Luigi Leonardi
  2025-02-14 17:53 ` [PATCH 1/2] vsock: Keep the binding until socket destruction Luigi Leonardi
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Luigi Leonardi @ 2025-02-14 17:53 UTC (permalink / raw)
  To: Stefano Garzarella, Michal Luczaj, stable
  Cc: Jakub Kicinski, syzbot+9d55b199192a4be7d02c, Luigi Leonardi

Hi all,

This series contains two patches that are already available upstream:

- The first commit fixes a use-after-free[1], but introduced a 
null-ptr-deref[2].
- The second commit fixes it. [3]

I suggested waiting for both of them to be merged upstream and then 
applying them togheter to stable[4].

It should be applied to:
- 6.13.y
- 6.12.y
- 6.6.y

I will send another series for
- 6.1.y
- 5.15.y
- 5.10.y

because of conflicts.

[1]https://lore.kernel.org/all/20250128-vsock-transport-vs-autobind-v3-0-1cf57065b770@rbox.co/
[2]https://lore.kernel.org/all/67a09300.050a0220.d7c5a.008b.GAE@google.com/
[3]https://lore.kernel.org/all/20250210-vsock-linger-nullderef-v3-0-ef6244d02b54@rbox.co/
[4]https://lore.kernel.org/all/2025020644-unwitting-scary-3c0d@gregkh/

Thanks,
Luigi

---
Michal Luczaj (2):
      vsock: Keep the binding until socket destruction
      vsock: Orphan socket after transport release

 net/vmw_vsock/af_vsock.c | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
---
base-commit: a1856aaa2ca74c88751f7d255dfa0c8c50fcc1ca
change-id: 20250214-linux-rolling-stable-d73f0bed815d

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


^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: [PATCH 0/2] vsock: fix use-after free and null-ptr-deref
@ 2025-02-20  8:34 Luigi Leonardi
  0 siblings, 0 replies; 9+ messages in thread
From: Luigi Leonardi @ 2025-02-20  8:34 UTC (permalink / raw)
  To: Stefano Garzarella
  Cc: Michal Luczaj, stable, Jakub Kicinski,
	syzbot+9d55b199192a4be7d02c

<qh6envvnuw45w2omvpufqtbq5k5343ymdzswxrxmczwoe64d6g@a4z5wjdbdw6w>
Reply-To:
In-Reply-To: 
<ah4qm66q5q7we7ykhl3uywgrexi7izdxrmfyn2zm3jhswitebt@cz2ipkdgr6yf>

On Tue, Feb 18, 2025 at 05:01:31PM +0100, Stefano Garzarella wrote:
>>
>>No, nothing I can think of.
>>
>>Note however that the comment above vsock_close() ("Dummy callback 
>>required
>>by sockmap. See unconditional call of saved_close() in 
>>sock_map_close().")
>>becomes somewhat misleading :)
>>
>
>Yeah, we can mention in the commit description of the backport that we 
>backport it just to reduce conflicts but sockmap features are not 
>backported. I'd touch as less as possibile in the patch, otherwise IMHO 
>is better to just fix the conflicts in the 2 patches.
>
>Thanks,
>Stefano
>

Totally agree with you, will send the backport in a couple of days if 
nobody has any objections.

Luigi


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

end of thread, other threads:[~2025-02-20  8:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-14 17:53 [PATCH 0/2] vsock: fix use-after free and null-ptr-deref Luigi Leonardi
2025-02-14 17:53 ` [PATCH 1/2] vsock: Keep the binding until socket destruction Luigi Leonardi
2025-02-14 17:53 ` [PATCH 2/2] vsock: Orphan socket after transport release Luigi Leonardi
2025-02-17 11:18 ` [PATCH 0/2] vsock: fix use-after free and null-ptr-deref Luigi Leonardi
2025-02-17 19:45   ` Michal Luczaj
2025-02-18  8:35     ` Stefano Garzarella
2025-02-18 14:05       ` Michal Luczaj
2025-02-18 16:01         ` Stefano Garzarella
  -- strict thread matches above, loose matches on Subject: below --
2025-02-20  8:34 Luigi Leonardi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.