Re: [PATCH] vhost/vsock: fix reset orphans race with close timeout

2018-12-09 Thread Michael S. Tsirkin
On Sat, Dec 08, 2018 at 09:25:44PM -0800, David Miller wrote: > From: Stefan Hajnoczi > Date: Thu, 6 Dec 2018 19:14:34 + > > > If a local process has closed a connected socket and hasn't received a > > RST packet yet, then the socket remains in the table until a timeout > > expires. > > > >

Re: [PATCH] vhost/vsock: fix reset orphans race with close timeout

2018-12-08 Thread David Miller
From: Stefan Hajnoczi Date: Thu, 6 Dec 2018 19:14:34 + > If a local process has closed a connected socket and hasn't received a > RST packet yet, then the socket remains in the table until a timeout > expires. > > When a vhost_vsock instance is released with the timeout still pending, > the

[PATCH] vhost/vsock: fix reset orphans race with close timeout

2018-12-06 Thread Stefan Hajnoczi
If a local process has closed a connected socket and hasn't received a RST packet yet, then the socket remains in the table until a timeout expires. When a vhost_vsock instance is released with the timeout still pending, the socket is never freed because vhost_vsock has already set the SOCK_DONE f