Date: Sun, 8 Apr 2007 10:46:24 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_jail.c Message-ID: <200704081046.l38AkOjE019444@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
pjd 2007-04-08 10:46:24 UTC FreeBSD src repository Modified files: sys/kern kern_jail.c Log: prison_free() can be called with a mutex held. This wasn't a problem until I converted allprison_mtx mutex to allprison_lock sx lock. To fix this LOR, move prison removal to prison_complete() entirely. To ensure that noone will reference this prison before it's beeing removed from the list skip prisons with 'pr_ref == 0' in prison_find() and assert that pr_ref has to greater than 0 in prison_hold(). Reported by: kris OK'ed by: rwatson Revision Changes Path 1.68 +16 -11 src/sys/kern/kern_jail.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704081046.l38AkOjE019444>