From owner-freebsd-current@FreeBSD.ORG Mon Apr 12 15:20:21 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 8600816A4CE; Mon, 12 Apr 2004 15:20:21 -0700 (PDT) Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5593A43D31; Mon, 12 Apr 2004 15:20:14 -0700 (PDT) (envelope-from mark@grondar.org) Received: from storm.FreeBSD.org.uk (Ugrondar@localhost [127.0.0.1]) i3CMKDa5062336; Mon, 12 Apr 2004 23:20:13 +0100 (BST) (envelope-from mark@grondar.org) Received: (from Ugrondar@localhost)i3CMKCNd062335; Mon, 12 Apr 2004 23:20:12 +0100 (BST) (envelope-from mark@grondar.org) X-Authentication-Warning: storm.FreeBSD.org.uk: Ugrondar set sender to mark@grondar.org using -f Received: from grondar.org (localhost [127.0.0.1])i3CMJxIn091105; Mon, 12 Apr 2004 23:19:59 +0100 (BST) (envelope-from mark@grondar.org) Message-Id: <200404122219.i3CMJxIn091105@grimreaper.grondar.org> To: "Simon L. Nielsen" From: Mark Murray In-Reply-To: Your message of "Mon, 12 Apr 2004 20:25:18 +0200." <20040412182518.GB797@zaphod.nitro.dk> Date: Mon, 12 Apr 2004 23:19:59 +0100 Sender: mark@grondar.org X-Spam-Score: 3 (***) MSGID_FROM_MTA_SHORT X-Scanned-By: MIMEDefang 2.39 cc: freebsd-current@FreeBSD.ORG 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 22:20:21 -0000 "Simon L. Nielsen" writes: > > 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. Hmmm. Methinks initdiskless should depend on initrandom. > 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. Short term; rc.d. Long term, kernel might not be a bad idea. There are some very nasty initial conditions to fix first. The device MUST start up secure, for one. > Is it intentional that random(4) isn't seeded by the kernel itself now? Unintentional, but hard to fix. M -- Mark Murray iumop ap!sdn w,I idlaH