Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Aug 2004 04:41:03 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern uipc_usrreq.c
Message-ID:  <200408160441.i7G4f3c8048065@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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