Revision c38f57da428b033f2721b611d84b1f40bde674a8 authored by Stefan Hajnoczi on 06 December 2018, 19:14:34 UTC, committed by Michael S. Tsirkin on 06 December 2018, 19:22:34 UTC
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 flag. Check if the close timer is pending and let it close the socket. This prevents the race which can leak sockets. Reported-by: Maximilian Riemensberger <riemensberger@cadami.net> Cc: Graham Whaley <graham.whaley@gmail.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
1 parent 2595646
File | Mode | Size |
---|---|---|
68000 | ||
amiga | ||
apollo | ||
atari | ||
bvme6000 | ||
coldfire | ||
configs | ||
emu | ||
fpsp040 | ||
hp300 | ||
ifpsp060 | ||
include | ||
kernel | ||
lib | ||
mac | ||
math-emu | ||
mm | ||
mvme147 | ||
mvme16x | ||
q40 | ||
sun3 | ||
sun3x | ||
tools | ||
Kconfig | -rw-r--r-- | 3.0 KB |
Kconfig.bus | -rw-r--r-- | 2.1 KB |
Kconfig.cpu | -rw-r--r-- | 12.5 KB |
Kconfig.debug | -rw-r--r-- | 1.3 KB |
Kconfig.devices | -rw-r--r-- | 4.4 KB |
Kconfig.machine | -rw-r--r-- | 12.4 KB |
Makefile | -rw-r--r-- | 5.1 KB |
install.sh | -rw-r--r-- | 1.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...