summaryrefslogtreecommitdiffstats
path: root/lib/libthread_db/libc_r_db.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-08-16 04:41:03 +0000
committerrwatson <rwatson@FreeBSD.org>2004-08-16 04:41:03 +0000
commit7ac0169fa1f717c83984b9fa052b6b0bac06cd4a (patch)
treebcab29a5fd515deb51acd2b227e4c19b5b40de20 /lib/libthread_db/libc_r_db.c
parent83403f384048c8619e28ffee5bed975e92cf23cc (diff)
downloadFreeBSD-src-7ac0169fa1f717c83984b9fa052b6b0bac06cd4a.zip
FreeBSD-src-7ac0169fa1f717c83984b9fa052b6b0bac06cd4a.tar.gz
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().
Diffstat (limited to 'lib/libthread_db/libc_r_db.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud