From owner-freebsd-current@FreeBSD.ORG Mon Apr 12 11:25:22 2004 Return-Path: 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 7AAC516A4CE; Mon, 12 Apr 2004 11:25:22 -0700 (PDT) Received: from zaphod.nitro.dk (port324.ds1-khk.adsl.cybercity.dk [212.242.113.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC1CC43D1F; Mon, 12 Apr 2004 11:25:21 -0700 (PDT) (envelope-from simon@zaphod.nitro.dk) Received: by zaphod.nitro.dk (Postfix, from userid 3000) id CD2D1114B2; Mon, 12 Apr 2004 20:25:18 +0200 (CEST) Date: Mon, 12 Apr 2004 20:25:18 +0200 From: "Simon L. Nielsen" To: Mark Murray Message-ID: <20040412182518.GB797@zaphod.nitro.dk> References: <20040412085955.GB798@zaphod.nitro.dk> <200404120935.i3C9ZcIn084537@grimreaper.grondar.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5/uDoXvLw7AC5HRs" Content-Disposition: inline In-Reply-To: <200404120935.i3C9ZcIn084537@grimreaper.grondar.org> User-Agent: Mutt/1.5.6i cc: freebsd-current@FreeBSD.ORG cc: Mark Murray Subject: Re: random(4) related panic: sleeping without a mutex X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Mon, 12 Apr 2004 18:25:22 -0000 --5/uDoXvLw7AC5HRs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2004.04.12 10:35:37 +0100, Mark Murray wrote: > "Simon L. Nielsen" writes: > > > Could you please try the enclosed patch? > >=20 > > It fixes the panic, but now it just hangs after init. >=20 > Fix panic is good (fix committed). Great, thanks! > > Since it doesn't harvest I guess it's not that strange that it isn't > > seeded, but since it worked before something must have changed. >=20 > Yeah. Part of the startup does a "kickstart" of the device by writing > garbage to it. I wonder why it didn't do that this time. Is your > /etc/rc* completely up to date? What is in your rc.conf? The problem is that I use initdiskless which is run as the very first rc.d script, even before initrandom. It has to run first since /etc is replaced by that script. As a workaround I added the hack from initrandom (ps -fauxww; sysctl... >/dev/random and so on) and the system boots again. So I'm not really sure if this should be fixed in rc.d or in the kernel. Is it intentional that random(4) isn't seeded by the kernel itself now? --=20 Simon L. Nielsen FreeBSD Documentation Team --5/uDoXvLw7AC5HRs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAet8Oh9pcDSc1mlERAk18AKDF12b7BOueDZpamHExwpq3chEFJQCcD9C+ Qih0mBo61Bigjy7M7FHTRJ4= =w3Ys -----END PGP SIGNATURE----- --5/uDoXvLw7AC5HRs--