Date: Thu, 18 Jun 2009 20:56:22 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern uipc_usrreq.c Message-ID: <200906182115.n5ILF1HM001412@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2009-06-18 20:56:22 UTC
FreeBSD src repository
Modified files:
sys/kern uipc_usrreq.c
Log:
SVN rev 194460 on 2009-06-18 20:56:22Z by jhb
Fix a deadlock in the getpeername() method for UNIX domain sockets.
Instead of locking the local unp followed by the remote unp, use the same
locking model as accept() and read lock the global link lock followed by
the remote unp while fetching the remote sockaddr.
Reported by: Mel Flynn mel.flynn of mailing.thruhere.net
Reviewed by: rwatson
MFC after: 1 week
Revision Changes Path
1.231 +4 -4 src/sys/kern/uipc_usrreq.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906182115.n5ILF1HM001412>
