Re: [PATCH v2] VSOCK: bind to random port for VMADDR_PORT_ANY

2018-12-14 Thread David Miller
From: Lepton Wu Date: Tue, 11 Dec 2018 11:12:55 -0800 > 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 t

RE: [PATCH v2] VSOCK: bind to random port for VMADDR_PORT_ANY

2018-12-12 Thread Jorgen S. Hansen
> > 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

[PATCH v2] VSOCK: bind to random port for VMADDR_PORT_ANY

2018-12-11 Thread Lepton Wu
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