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>
next in thread | previous in thread | raw e-mail | index | archive | help
--y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 17, 2002 at 10:17:39PM -0800, Alfred Perlstein wrote: > * Dag-Erling Smorgrav <des@ofug.org> [020317 19:27] wrote: > >=20 > > ...the process has no open files at all, because... > >=20 > > (kgdb) p p->p_pid > > $4 =3D 10099 > > (kgdb) p p->p_comm > > $5 =3D "wc\000oot", '\000' <repeats 13 times> > > (kgdb) p p->p_stat > > $6 =3D 3 > > (kgdb) p/x p->p_flag > > $7 =3D 0x6000 > >=20 > > ...it's exiting, and fdfree() has already run. > >=20 > > 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. > >=20 > > Other problem spotted while investigating this: fdfree() can fail > > silently; fdfree() should panic if fdp->fd_refcnt is non-zero. >=20 > Please let me know if this works for you. Thanks, will test once the current run is finished. Kris --y0ulUmNC+osPPQO6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8lYfMWry0BWjoQKURApoDAKCn3Ib0V2oR1RbY4Wu3ieIU2QLZkwCgkKOI Ikv5H3ZG5hRTRAUXigXW4Cc= =P4xG -----END PGP SIGNATURE----- --y0ulUmNC+osPPQO6-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020317222309.A45621>