git: kernel - Fix syncache vs close(listen_socket) race
Matthew Dillon
dillon at crater.dragonflybsd.org
Sun Jan 30 16:24:48 PST 2011
commit 068a5b708c211250949949a9faff20ea60676f2a
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Sun Jan 30 16:19:40 2011 -0800
kernel - Fix syncache vs close(listen_socket) race
* Attempt to fix a race where a listen socket is closed with an active
syncache. The tcpcb is detached prior to the syncache being destroyed
resulting in a race where a new incoming connection can complete and
attempt to dive the listen socket's tcpcb.
* Detach the tcpcb after the syncache is destroyed rather than before.
Summary of changes:
sys/netinet/tcp_subr.c | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/068a5b708c211250949949a9faff20ea60676f2a
--
DragonFly BSD source repository
More information about the Commits
mailing list