diff options
author | jhb <jhb@FreeBSD.org> | 2009-06-18 20:56:22 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2009-06-18 20:56:22 +0000 |
commit | b74ac99a510b71d1e4f9b640cf1f084052e00d45 (patch) | |
tree | 90162d4bd71f58d1046f15655d9a3a0f301a7a9a /release/picobsd | |
parent | f3a1b951fc132d7220b5d5bdb2890f68143a229f (diff) | |
download | FreeBSD-src-b74ac99a510b71d1e4f9b640cf1f084052e00d45.zip FreeBSD-src-b74ac99a510b71d1e4f9b640cf1f084052e00d45.tar.gz |
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
Diffstat (limited to 'release/picobsd')
0 files changed, 0 insertions, 0 deletions