From owner-freebsd-current@FreeBSD.ORG Sat Aug 13 00:52:34 2005 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9F7E16A41F; Sat, 13 Aug 2005 00:52:34 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from fileserver.fields.utoronto.ca (fileserver.fields.utoronto.ca [128.100.216.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D21543D49; Sat, 13 Aug 2005 00:52:34 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from fields.fields.utoronto.ca (fields.localdomain [192.168.216.11]) by fileserver.fields.utoronto.ca (8.12.8/8.12.8/Fields 6.0) with ESMTP id j7D0qXvf022860 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 12 Aug 2005 20:52:33 -0400 Received: from obsecurity.dyndns.org (localhost.localdomain [127.0.0.1]) by fields.fields.utoronto.ca (8.12.8/8.12.8/Fields WS 6.0) with ESMTP id j7D0qX6P018031; Fri, 12 Aug 2005 20:52:33 -0400 Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 397F851282; Fri, 12 Aug 2005 20:52:33 -0400 (EDT) Date: Fri, 12 Aug 2005 20:52:33 -0400 From: Kris Kennaway To: Kris Kennaway Message-ID: <20050813005233.GA48108@xor.obsecurity.org> References: <20050813004326.GA47855@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pWyiEgJYm5f9v55/" Content-Disposition: inline In-Reply-To: <20050813004326.GA47855@xor.obsecurity.org> User-Agent: Mutt/1.4.2.1i Cc: phk@FreeBSD.org, current@FreeBSD.org Subject: Re: Infinite loop in devfs_create() X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Aug 2005 00:52:35 -0000 --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 12, 2005 at 08:43:26PM -0400, Kris Kennaway wrote: > I have an SMP amd64 package machine that has deadlocked, apparently > here: >=20 > --- trap 0x13, rip =3D 0xffffffff8034b2a1, rsp =3D 0xffffffffbe6f2a10, rb= p =3D 0xffffffffbe6f2a40 --- > devfs_create() at devfs_create+0x41 > make_dev_credv() at make_dev_credv+0x148 > make_dev() at make_dev+0x97 > g_dev_taste() at g_dev_taste+0x130 > g_new_provider_event() at g_new_provider_event+0x8a > one_event() at one_event+0x19b > g_run_events() at g_run_events+0x9 > g_event_procbody() at g_event_procbody+0x7d > fork_exit() at fork_exit+0xdf > fork_trampoline() at fork_trampoline+0xe > --- trap 0, rip =3D 0, rsp =3D 0xffffffffbe6f2d00, rbp =3D 0 --- >=20 > If I break/continue and examine devfs_nextino, it appears to be > looping infinitely in devfs_create: >=20 > db> x/d devfs_nextino > devfs_nextino: 746 > [...] > db> x/d devfs_nextino > devfs_nextino: 339 >=20 > This machine has a number of md mounts active (they are created and > destroyed dynamically and tend to get up to high unit numbers, around > ~600 at the time of deadlock). Also devfs mounts come and go, but I > don't think anything else unusual is going on on the system. This could explain some mysterious deadlocks I've been getting on sparc machines too, which also cycle through md devices in a similar way. I bet something is not being cleaned up properly when the devices are unconfigured, and eventually devfs is filling up all available inodes (1024) and failing gracelessly. Kris --pWyiEgJYm5f9v55/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC/URRWry0BWjoQKURAp1GAJ460n8rAI9XD21lkKF0BDQXYPlLxQCg39Pt ZUSQSPmSqEAF7ffzt34ZrvE= =xoLh -----END PGP SIGNATURE----- --pWyiEgJYm5f9v55/--