Date: Wed, 19 May 2010 15:06:09 +0000 (UTC) From: Attilio Rao <attilio@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/netgraph ng_socket.c Message-ID: <201005191506.o4JF6P5H044181@repoman.freebsd.org>
index | next in thread | raw e-mail
attilio 2010-05-19 15:06:09 UTC
FreeBSD src repository
Modified files:
sys/netgraph ng_socket.c
Log:
SVN rev 208300 on 2010-05-19 15:06:09Z by attilio
Fix a race between ngs_rcvmsg() and soclose() which closes the control
socket while it is still in use.
priv->ctlsock is checked at the top of the function but without any
lock held, which means the control socket state may certainly change.
Add a similar protection to ngs_shutdown() even if a race is unlikely
to be experienced there.
Sponsored by: Sandvine Incorporated
Obtained from: Nima Misaghian @ Sandvine Incorporated
<nmisaghian at sandvine dot com>
MFC after: 10 days
Revision Changes Path
1.90 +26 -6 src/sys/netgraph/ng_socket.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005191506.o4JF6P5H044181>
