Date: Sun, 17 Mar 2002 22:23:09 -0800 From: Kris Kennaway <kris@obsecurity.org> To: Alfred Perlstein <alfred@freebsd.org> Cc: Dag-Erling Smorgrav <des@ofug.org>, Kris Kennaway <kris@obsecurity.org>, current@freebsd.org, fs@freebsd.org Subject: Re: panic: bwrite: buffer is not busy??? Message-ID: <20020317222309.A45621@xor.obsecurity.org> In-Reply-To: <20020318061739.GB894@elvis.mu.org>; from alfred@freebsd.org on Sun, Mar 17, 2002 at 10:17:39PM -0800 References: <20020317124958.A34008@xor.obsecurity.org> <xzpadt6r1xr.fsf@flood.ping.uio.no> <20020318061739.GB894@elvis.mu.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Sun, Mar 17, 2002 at 10:17:39PM -0800, Alfred Perlstein wrote: > * Dag-Erling Smorgrav <des@ofug.org> [020317 19:27] wrote: > > > > ...the process has no open files at all, because... > > > > (kgdb) p p->p_pid > > $4 = 10099 > > (kgdb) p p->p_comm > > $5 = "wc\000oot", '\000' <repeats 13 times> > > (kgdb) p p->p_stat > > $6 = 3 > > (kgdb) p/x p->p_flag > > $7 = 0x6000 > > > > ...it's exiting, and fdfree() has already run. > > > > Solution: p->p_fd must be protected by p's proc lock; fdfree() must > > set it to NULL immediately after freeing it; checkdirs() must lock > > each process before examining its fd list. > > > > Other problem spotted while investigating this: fdfree() can fail > > silently; fdfree() should panic if fdp->fd_refcnt is non-zero. > > Please let me know if this works for you. Thanks, will test once the current run is finished. Kris [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8lYfMWry0BWjoQKURApoDAKCn3Ib0V2oR1RbY4Wu3ieIU2QLZkwCgkKOI Ikv5H3ZG5hRTRAUXigXW4Cc= =P4xG -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020317222309.A45621>
