From owner-svn-src-head@FreeBSD.ORG Sat Nov 1 23:35:04 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F015716B; Sat, 1 Nov 2014 23:35:03 +0000 (UTC) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BAFA16B4; Sat, 1 Nov 2014 23:35:03 +0000 (UTC) Received: from [73.34.117.227] (helo=ilsoft.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1XkiC8-000KQR-AN; Sat, 01 Nov 2014 23:34:56 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id sA1NYsI6088214; Sat, 1 Nov 2014 17:34:54 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX180Odeh89Ia+JmcTnUGcxPg X-Authentication-Warning: paranoia.hippie.lan: Host revolution.hippie.lan [172.22.42.240] claimed to be [172.22.42.240] 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... From: Ian Lepore To: Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?= In-Reply-To: <86r3xm5wt6.fsf@nine.des.no> References: <201410302121.s9ULLsEw055630@svn.freebsd.org> <20141101181536.2b6a5911@kan> <627C5F71-939A-4579-8A1B-45933662DAED@FreeBSD.org> <1414882185.17308.221.camel@revolution.hippie.lan> <86r3xm5wt6.fsf@nine.des.no> Content-Type: text/plain; charset="iso-2022-jp" Date: Sat, 01 Nov 2014 17:34:54 -0600 Message-ID: <1414884894.17308.229.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: Adrian Chadd , "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" , Mark R V Murray , Alexander Kabaev X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Nov 2014 23:35:04 -0000 On Sun, 2014-11-02 at 00:24 +0100, Dag-Erling Smrgrav wrote: > Ian Lepore writes: > > Mark R V Murray writes: > > > The writing happens at shutdown; before you do the shutdown could > > > you please do a ‘sysctl kern.random’ and post the result? > > I'm not sure where you're getting "at shutdown" from. > > 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. > > DES Well that took all of 90 seconds... In rc.d/random we have: extra_commands="saveseed" saveseed_cmd="${name}_stop" and in rc.d/postrandom we have: postrandom_start() { /etc/rc.d/random fastsaveseed ... and so it tries to write an entropy file at startup and hangs, presumably because /dev/random hasn't been sufficiently fed to generate that much random output? -- Ian