summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-06-22 10:23:54 +0000
committerrwatson <rwatson@FreeBSD.org>2009-06-22 10:23:54 +0000
commit5daa0c14237b29afdd8225eba0c34cc0c8238ca3 (patch)
tree8b6fd873a14e459bd3341eef4e3b417559fcfec3 /lib/libc
parent1a759a35f242325e2263831a412a94a6e90ca317 (diff)
downloadFreeBSD-src-5daa0c14237b29afdd8225eba0c34cc0c8238ca3.zip
FreeBSD-src-5daa0c14237b29afdd8225eba0c34cc0c8238ca3.tar.gz
Add a global rwlock, at_ifaddr_rw, to protect the global netatalk
address lists, at_ifaddr_list. Acquire the lock, and use ifaddr refcounts where necessary, to close most known address-related races in netatalk. Annotate one potential race in at_control() where we acquire an ifaddr reference, drop the global lock, and scrub the address from the ifnet before re-acquiring the global lock, which could allow for a writer-writer race. MFC after: 3 weeks
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud