Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Apr 2004 20:25:18 +0200
From:      "Simon L. Nielsen" <simon@FreeBSD.org>
To:        Mark Murray <mark@grondar.org>
Cc:        Mark Murray <markm@FreeBSD.ORG>
Subject:   Re: random(4) related panic: sleeping without a mutex
Message-ID:  <20040412182518.GB797@zaphod.nitro.dk>
In-Reply-To: <200404120935.i3C9ZcIn084537@grimreaper.grondar.org>
References:  <20040412085955.GB798@zaphod.nitro.dk> <200404120935.i3C9ZcIn084537@grimreaper.grondar.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040412182518.GB797>