lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181208.212544.2143955201045780777.davem@davemloft.net>
Date:   Sat, 08 Dec 2018 21:25:44 -0800 (PST)
From:   David Miller <davem@...emloft.net>
To:     stefanha@...hat.com
Cc:     kvm@...r.kernel.org, mst@...hat.com, netdev@...r.kernel.org,
        riemensberger@...ami.net, graham.whaley@...il.com
Subject: Re: [PATCH] vhost/vsock: fix reset orphans race with close timeout

From: Stefan Hajnoczi <stefanha@...hat.com>
Date: Thu,  6 Dec 2018 19:14:34 +0000

> 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@...ami.net>
> Cc: Graham Whaley <graham.whaley@...il.com>
> Signed-off-by: Stefan Hajnoczi <stefanha@...hat.com>

Michael please review, and let me know if you want me to apply this
directly and queue it up for -stable.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ