Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 01 Nov 2014 17:44:08 -0600
From:      Ian Lepore <ian@FreeBSD.org>
To:        Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?= <des@des.no>
Cc:        Adrian Chadd <adrian@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, Mark R V Murray <markm@FreeBSD.org>, Alexander Kabaev <kabaev@gmail.com>
Subject:   Re: svn commit: r273872 - in head: etc/defaults etc/rc.d libexec/save-entropy share/examples/kld/random_adaptor sys/conf sys/dev/glxsb sys/dev/random sys/kern sys/modules sys/modules/padlock_rng sys/mo...
Message-ID:  <1414885448.17308.236.camel@revolution.hippie.lan>
In-Reply-To: <86mw8a5we0.fsf@nine.des.no>
References:  <201410302121.s9ULLsEw055630@svn.freebsd.org> <CAJ-Vmo=3At6wagbo1iqc_KAB3BvCh8cYcvPOD%2BppvNgmg7gXLg@mail.gmail.com> <20141101181536.2b6a5911@kan> <627C5F71-939A-4579-8A1B-45933662DAED@FreeBSD.org> <1414882185.17308.221.camel@revolution.hippie.lan> <86r3xm5wt6.fsf@nine.des.no>  <86mw8a5we0.fsf@nine.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 2014-11-02 at 00:33 +0100, Dag-Erling Sm=F8rgrav wrote:
> Dag-Erling Sm=F8rgrav <des@des.no> writes:
> > From the code.  This is a portion of the rc script that only runs at
> > shutdown.  If random_stop() runs during boot, something is seriously
> > wrong *somewhere else* and you are welcome to help find out what.
>=20
> I found it - postrandom triggers it.  For now, just remove
> /etc/rc.d/postrandom (I'm not sure it's really needed, there are better
> ways to do this).
>=20
> DES

Yeah.  I vaguely remember discussion about this something like 12-18
months ago.  As I remember it, there was a desire to avoid using the
same startup saved entropy on a rapid series of reboots and the thinking
was to combat that by generating some fresh saved entropy on each boot.

It seems like that should work if the old saved entropy were stirred in
with the modicum of boot-time entropy before generating a new save file.
Hmmm, but what if there is no saved entropy?  Maybe that's what's
happening here, given that a freshly created varmfs is involved.

I was thinking maybe postrandom should only try to save a new file if
there are some existing files to avoid the possibility of hanging.  But
when I look at postrandom more closely, it seems to be generating a save
file, then deleting it along with all the other save files.

-- Ian





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