mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net 0/3] vsock: Fix transport_{h2g,g2h,dgram,local} TOCTOU issues
@ 2025-06-18 12:33 Michal Luczaj
  2025-06-18 12:34 ` [PATCH net 1/3] vsock: Fix transport_{h2g,g2h} TOCTOU Michal Luczaj
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Michal Luczaj @ 2025-06-18 12:33 UTC (permalink / raw)
  To: Stefano Garzarella, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Simon Horman
  Cc: virtualization, netdev, linux-kernel, Michal Luczaj

transport_{h2g,g2h,dgram,local} may become NULL on vsock_core_unregister().
Make sure a poorly timed `rmmod transport` won't lead to a NULL/stale
pointer dereference.

Note that these oopses are pretty unlikely to happen in the wild. Splats
were collected after sprinkling kernel with mdelay()s.

Signed-off-by: Michal Luczaj <mhal@rbox.co>
---
Michal Luczaj (3):
      vsock: Fix transport_{h2g,g2h} TOCTOU
      vsock: Fix transport_g2h TOCTOU
      vsock: Fix transport_* TOCTOU

 net/vmw_vsock/af_vsock.c | 34 +++++++++++++++++++++++++++-------
 1 file changed, 27 insertions(+), 7 deletions(-)
---
base-commit: d0fa59897e049e84432600e86df82aab3dce7aa5
change-id: 20250523-vsock-transports-toctou-4b75d9c2a805

Best regards,
-- 
Michal Luczaj <mhal@rbox.co>


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

end of thread, other threads:[~2025-06-20 19:58 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-18 12:33 [PATCH net 0/3] vsock: Fix transport_{h2g,g2h,dgram,local} TOCTOU issues Michal Luczaj
2025-06-18 12:34 ` [PATCH net 1/3] vsock: Fix transport_{h2g,g2h} TOCTOU Michal Luczaj
2025-06-20  8:32   ` Stefano Garzarella
2025-06-20 12:58     ` Michal Luczaj
2025-06-20 13:20       ` Stefano Garzarella
2025-06-20 14:23         ` Michal Luczaj
2025-06-20 14:43           ` Stefano Garzarella
2025-06-20 19:57             ` Michal Luczaj
2025-06-18 12:34 ` [PATCH net 2/3] vsock: Fix transport_g2h TOCTOU Michal Luczaj
2025-06-18 12:34 ` [PATCH net 3/3] vsock: Fix transport_* TOCTOU Michal Luczaj
2025-06-20  8:37   ` Stefano Garzarella
2025-06-20 12:57     ` Michal Luczaj

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

all inboxes | Powered by JetHome®