From owner-freebsd-fs Sun Mar 17 22:23:15 2002 Delivered-To: freebsd-fs@freebsd.org Received: from obsecurity.dyndns.org (adsl-64-165-226-239.dsl.lsan03.pacbell.net [64.165.226.239]) by hub.freebsd.org (Postfix) with ESMTP id 49C8C37B405; Sun, 17 Mar 2002 22:23:10 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id A83EB66C39; Sun, 17 Mar 2002 22:23:09 -0800 (PST) Date: Sun, 17 Mar 2002 22:23:09 -0800 From: Kris Kennaway To: Alfred Perlstein Cc: Dag-Erling Smorgrav , Kris Kennaway , current@freebsd.org, fs@freebsd.org Subject: Re: panic: bwrite: buffer is not busy??? Message-ID: <20020317222309.A45621@xor.obsecurity.org> References: <20020317124958.A34008@xor.obsecurity.org> <20020318061739.GB894@elvis.mu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="y0ulUmNC+osPPQO6" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020318061739.GB894@elvis.mu.org>; from alfred@freebsd.org on Sun, Mar 17, 2002 at 10:17:39PM -0800 Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --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 [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' > > (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