Date: Wed, 20 Jun 2001 03:06:28 -0700 (PDT) From: Brian Somers <brian@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net if_tun.c Message-ID: <200106201006.f5KA6Sq43409@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
brian 2001/06/20 03:06:28 PDT Modified files: sys/net if_tun.c Log: Close a race where we were releasing the unit resource at the start of tunclose() rather than the end, and tunopen() grabbed that unit before tunclose() finished (one process is allocating it while another is freeing it!). It may be worth hanging some sort of rw mutex around all specinfo calls where d_close and the detach handler get a write lock and all other functions get a read lock. This would guarantee certain levels of ``atomicity'' (is that a word?) that people may expect (I believe Solaris does something like this). Revision Changes Path 1.96 +5 -3 src/sys/net/if_tun.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106201006.f5KA6Sq43409>