netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/4] vsock: fix server prevents clients from reconnecting
@ 2023-11-03 17:55 f.storniolo95
  2023-11-03 17:55 ` [PATCH net 1/4] vsock/virtio: remove socket from connected/bound list on shutdown f.storniolo95
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: f.storniolo95 @ 2023-11-03 17:55 UTC (permalink / raw)
  To: luigi.leonardi, kvm
  Cc: davem, edumazet, mst, imbrenda, kuba, asias, stefanha, pabeni,
	sgarzare, netdev, linux-kernel, virtualization, Filippo Storniolo

From: Filippo Storniolo <f.storniolo95@gmail.com>

This patch series introduce fix and tests for the following vsock bug:
If the same remote peer, using the same port, tries to connect
to a server on a listening port more than once, the server will
reject the connection, causing a "connection reset by peer"
error on the remote peer. This is due to the presence of a
dangling socket from a previous connection in both the connected
and bound socket lists.
The inconsistency of the above lists only occurs when the remote
peer disconnects and the server remains active.
This bug does not occur when the server socket is closed.

More details on the first patch changelog.
The remaining patches are refactoring and test.

Filippo Storniolo (4):
  vsock/virtio: remove socket from connected/bound list on shutdown
  test/vsock fix: add missing check on socket creation
  test/vsock: refactor vsock_accept
  test/vsock: add dobule bind connect test

 net/vmw_vsock/virtio_transport_common.c | 16 +++--
 tools/testing/vsock/util.c              | 87 +++++++++++++++++++++----
 tools/testing/vsock/util.h              |  3 +
 tools/testing/vsock/vsock_test.c        | 50 ++++++++++++++
 4 files changed, 139 insertions(+), 17 deletions(-)

-- 
2.41.0


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

end of thread, other threads:[~2023-11-07 22:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-03 17:55 [PATCH net 0/4] vsock: fix server prevents clients from reconnecting f.storniolo95
2023-11-03 17:55 ` [PATCH net 1/4] vsock/virtio: remove socket from connected/bound list on shutdown f.storniolo95
2023-11-06 10:43   ` Stefano Garzarella
2023-11-03 17:55 ` [PATCH net 2/4] test/vsock fix: add missing check on socket creation f.storniolo95
2023-11-06 10:46   ` Stefano Garzarella
2023-11-03 17:55 ` [PATCH net 3/4] test/vsock: refactor vsock_accept f.storniolo95
2023-11-06 10:47   ` Stefano Garzarella
2023-11-03 17:55 ` [PATCH net 4/4] test/vsock: add dobule bind connect test f.storniolo95
2023-11-06 10:48   ` Stefano Garzarella
2023-11-06 10:50 ` [PATCH net 0/4] vsock: fix server prevents clients from reconnecting Stefano Garzarella
2023-11-07 22:30 ` patchwork-bot+netdevbpf

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).