]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add send buffer locking to uipc_send(). Without this locking a race can
authoralc <alc@FreeBSD.org>
Wed, 22 Dec 2004 20:28:46 +0000 (20:28 +0000)
committeralc <alc@FreeBSD.org>
Wed, 22 Dec 2004 20:28:46 +0000 (20:28 +0000)
commit04b2362b0f7f3cad647d6adfac62447e69310d98
treec96aa08428921b89b36062fcc42934c5faa86074
parentd608d899c2d5a35970c67e6b331c084ae2f583e0
Add send buffer locking to uipc_send().  Without this locking a race can
occur between a reader and a writer that results in a panic upon close,
e.g.,
"panic: sbflush_locked: cc 4 || mb 0xffffff0052afa400 || mbcnt 0"

Reviewed by: rwatson@
MFC after: 2 weeks
sys/kern/uipc_usrreq.c