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
History
File Mode Size
BUGS-parport -rw-r--r-- 319 bytes
Kconfig -rw-r--r-- 5.5 KB
Makefile -rw-r--r-- 728 bytes
TODO-parport -rw-r--r-- 594 bytes
daisy.c -rw-r--r-- 12.3 KB
ieee1284.c -rw-r--r-- 22.4 KB
ieee1284_ops.c -rw-r--r-- 23.3 KB
multiface.h -rw-r--r-- 426 bytes
parport_amiga.c -rw-r--r-- 6.3 KB
parport_atari.c -rw-r--r-- 5.3 KB
parport_ax88796.c -rw-r--r-- 9.2 KB
parport_cs.c -rw-r--r-- 5.5 KB
parport_gsc.c -rw-r--r-- 11.1 KB
parport_gsc.h -rw-r--r-- 6.1 KB
parport_ip32.c -rw-r--r-- 67.0 KB
parport_mfc3.c -rw-r--r-- 9.9 KB
parport_pc.c -rw-r--r-- 85.6 KB
parport_serial.c -rw-r--r-- 19.8 KB
parport_sunbpp.c -rw-r--r-- 9.3 KB
probe.c -rw-r--r-- 7.4 KB
procfs.c -rw-r--r-- 12.7 KB
share.c -rw-r--r-- 36.8 KB

back to top