git: kernel - Fix syncache vs close(listen_socket) race

Matthew Dillon dillon at
Sun Jan 30 16:24:48 PST 2011

commit 068a5b708c211250949949a9faff20ea60676f2a
Author: Matthew Dillon <dillon at>
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(-)

DragonFly BSD source repository

More information about the Commits mailing list