cvs commit: src/sys/kern uipc_usrreq.c

Robert Watson rwatson at FreeBSD.org
Sun Aug 15 21:41:05 PDT 2004


rwatson     2004-08-16 04:41:03 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             uipc_usrreq.c 
  Log:
  Always acquire the UNIX domain socket subsystem lock (UNP lock)
  before dereferencing sotounpcb() and checking its value, as so_pcb
  is protected by protocol locking, not subsystem locking.  This
  prevents races during close() by one thread and use of ths socket
  in another.
  
  unp_bind() now assert the UNP lock, and uipc_bind() now acquires
  the lock around calls to unp_bind().
  
  Revision  Changes    Path
  1.138     +107 -46   src/sys/kern/uipc_usrreq.c


More information about the cvs-src mailing list