linux-brain/net/vmw_vsock
Lepton Wu 5c92b652d8 VSOCK: bind to random port for VMADDR_PORT_ANY
[ Upstream commit 8236b08cf5 ]

The old code always starts from fixed port for VMADDR_PORT_ANY. Sometimes
when VMM crashed, there is still orphaned vsock which is waiting for
close timer, then it could cause connection time out for new started VM
if they are trying to connect to same port with same guest cid since the
new packets could hit that orphaned vsock. We could also fix this by doing
more in vhost_vsock_reset_orphans, but any way, it should be better to start
from a random local port instead of a fixed one.

Signed-off-by: Lepton Wu <ytht.net@gmail.com>
Reviewed-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-05 15:37:24 +01:00
..
af_vsock_tap.c VSOCK: Add vsockmon tap functions 2017-04-24 12:35:56 -04:00
af_vsock.c VSOCK: bind to random port for VMADDR_PORT_ANY 2019-12-05 15:37:24 +01:00
hyperv_transport.c vsock: Fix a lockdep warning in __vsock_release() 2019-10-07 18:55:19 +02:00
Kconfig hv_sock: implements Hyper-V transport for Virtual Sockets (AF_VSOCK) 2017-08-28 15:38:18 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
virtio_transport_common.c vhost/vsock: split packets to send using multiple buffers 2019-12-01 09:13:11 +01:00
virtio_transport.c VSOCK: use TCP state constants for sk_state 2019-08-04 09:31:59 +02:00
vmci_transport_notify_qstate.c VSOCK: use TCP state constants for sk_state 2019-08-04 09:31:59 +02:00
vmci_transport_notify.c VSOCK: use TCP state constants for sk_state 2019-08-04 09:31:59 +02:00
vmci_transport_notify.h VSOCK: constify vmci_transport_notify_ops structures 2015-11-23 15:49:29 -05:00
vmci_transport.c VSOCK: use TCP state constants for sk_state 2019-08-04 09:31:59 +02:00
vmci_transport.h VSOCK: constify vmci_transport_notify_ops structures 2015-11-23 15:49:29 -05:00
vsock_addr.c VSOCK: Move af_vsock.h and vsock_addr.h to include/net 2013-07-27 22:14:06 -07:00