cvs commit: src/sys/kern uipc_socket.c

Gleb Smirnoff glebius at FreeBSD.org
Thu Mar 22 13:21:25 UTC 2007


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


More information about the cvs-src mailing list