netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v2 0/6] vsock: Transport reassignment and error handling issues
@ 2025-01-21 14:44 Michal Luczaj
  2025-01-21 14:44 ` [PATCH net v2 1/6] vsock: Keep the binding until socket destruction Michal Luczaj
                   ` (7 more replies)
  0 siblings, 8 replies; 24+ messages in thread
From: Michal Luczaj @ 2025-01-21 14:44 UTC (permalink / raw)
  To: Stefano Garzarella, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Simon Horman, George Zhang, Dmitry Torokhov,
	Andy King
  Cc: netdev, Michal Luczaj

Series deals with two issues:
- socket reference count imbalance due to an unforgiving transport release
  (triggered by transport reassignment);
- unintentional API feature, a failing connect() making the socket
  impossible to use for any subsequent connect() attempts.

Signed-off-by: Michal Luczaj <mhal@rbox.co>
---
Changes in v2:
- Introduce vsock_connect_fd(), simplify the tests, stick to SOCK_STREAM,
  collect Reviewed-by (Stefano)
- Link to v1: https://lore.kernel.org/r/20250117-vsock-transport-vs-autobind-v1-0-c802c803762d@rbox.co

---
Michal Luczaj (6):
      vsock: Keep the binding until socket destruction
      vsock: Allow retrying on connect() failure
      vsock/test: Introduce vsock_bind()
      vsock/test: Introduce vsock_connect_fd()
      vsock/test: Add test for UAF due to socket unbinding
      vsock/test: Add test for connect() retries

 net/vmw_vsock/af_vsock.c         |  13 ++++-
 tools/testing/vsock/util.c       |  87 +++++++++++-----------------
 tools/testing/vsock/util.h       |   2 +
 tools/testing/vsock/vsock_test.c | 122 ++++++++++++++++++++++++++++++++++-----
 4 files changed, 152 insertions(+), 72 deletions(-)
---
base-commit: d640627663bfe7d8963c7615316d7d4ef60f3b0b
change-id: 20250116-vsock-transport-vs-autobind-2da49f1d5a0a

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


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

end of thread, other threads:[~2025-01-28 13:18 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-21 14:44 [PATCH net v2 0/6] vsock: Transport reassignment and error handling issues Michal Luczaj
2025-01-21 14:44 ` [PATCH net v2 1/6] vsock: Keep the binding until socket destruction Michal Luczaj
2025-01-21 14:44 ` [PATCH net v2 2/6] vsock: Allow retrying on connect() failure Michal Luczaj
2025-01-22 16:28   ` Luigi Leonardi
2025-01-22 21:06     ` Michal Luczaj
2025-01-23 11:42       ` Luigi Leonardi
2025-01-21 14:44 ` [PATCH net v2 3/6] vsock/test: Introduce vsock_bind() Michal Luczaj
2025-01-22 16:01   ` Luigi Leonardi
2025-01-22 20:11     ` Michal Luczaj
2025-01-23 11:02       ` Luigi Leonardi
2025-01-23 11:07         ` Stefano Garzarella
2025-01-21 14:44 ` [PATCH net v2 4/6] vsock/test: Introduce vsock_connect_fd() Michal Luczaj
2025-01-22 11:39   ` Stefano Garzarella
2025-01-21 14:44 ` [PATCH net v2 5/6] vsock/test: Add test for UAF due to socket unbinding Michal Luczaj
2025-01-22 11:43   ` Stefano Garzarella
2025-01-21 14:44 ` [PATCH net v2 6/6] vsock/test: Add test for connect() retries Michal Luczaj
2025-01-22 11:43   ` Stefano Garzarella
2025-01-22 15:39   ` Luigi Leonardi
2025-01-22 11:45 ` [PATCH net v2 0/6] vsock: Transport reassignment and error handling issues Stefano Garzarella
2025-01-22 14:16   ` Michal Luczaj
2025-01-22 15:47     ` Stefano Garzarella
2025-01-22 20:10       ` Michal Luczaj
2025-01-27 21:49 ` Jakub Kicinski
2025-01-28 13:18   ` Michal Luczaj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).