On Mon, Dec 10, 2018 at 06:06:31PM -0800, Lepton Wu wrote: > 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@xxxxxxxxx> > --- > net/vmw_vsock/af_vsock.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) <formletter> This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly. </formletter>