Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Mar 2007 13:21:24 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern uipc_socket.c
Message-ID:  <200703221321.l2MDLOKC026056@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
glebius     2007-03-22 13:21:24 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             uipc_socket.c 
  Log:
  Move the dom_dispose and pru_detach calls in sofree() earlier. Only after
  calling pru_detach we can be absolutely sure, that we don't have any
  references to the socket in the stack.
  
  This closes race between lockless sbdestroy() and data arriving on socket.
  
  Reviewed by:    rwatson
  
  Revision  Changes    Path
  1.295     +5 -4      src/sys/kern/uipc_socket.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703221321.l2MDLOKC026056>