GNU bug report logs

#36380 service urandom-seed takes too long on boot

PackageSource(s)Maintainer(s)
guix PTS Buildd Popcon
Full log

Message #37 received at 36380@debbugs.gnu.org (full text, mbox, reply):

Received: (at 36380) by debbugs.gnu.org; 28 Jun 2019 17:24:15 +0000
From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 28 13:24:14 2019
Received: from localhost ([127.0.0.1]:42900 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1hgube-0007fg-KI
	for submit@debbugs.gnu.org; Fri, 28 Jun 2019 13:24:14 -0400
Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:45547)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <leo@famulari.name>) id 1hgubY-0007fM-Ip
 for 36380@debbugs.gnu.org; Fri, 28 Jun 2019 13:24:10 -0400
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailout.west.internal (Postfix) with ESMTP id 7BC452B5;
 Fri, 28 Jun 2019 13:24:02 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute4.internal (MEProxy); Fri, 28 Jun 2019 13:24:02 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name;
 h=date:from:to:cc:subject:message-id:references:mime-version
 :content-type:in-reply-to; s=mesmtp; bh=1MZijjsBWf6ByWOYdGfCrVaD
 Aai2vpDgHTNvD6p0pTQ=; b=kbiQUTGkxMwTYVhaPACyJHApeuQJ9KbWcTUrKVqL
 htgv39oY2h3diARuAY8WazX3QKMfOtNNwG5FQkjkr6lU+3aawJl/dtQZhnyoA6IF
 olSa5CCl5peJj9smFvOE8oRhdfRVUb6Yi/D+LNumhepUctHb+Q+MyDE/yfRbTnFH
 GS0=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:date:from:in-reply-to
 :message-id:mime-version:references:subject:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=1MZijj
 sBWf6ByWOYdGfCrVaDAai2vpDgHTNvD6p0pTQ=; b=kyD4K89b422uaXLFR4db1+
 NITznfMWHi0imB6fXn+9wYR2l8I+tgVO3+T6oA0tcUyA+4Q5h1jRo+2DDb5oYuep
 DeqYRukfiasYjG9W6l1sSMLA0vkIZ1pFzjTTBcNHAcdUR+bLfJCQm6IlPnbbw10t
 L3SBNDC2PDmEiRDHaBRzOEymDP8t5yDrmQL9iDzIND3gQbJS/KqgOWuqf0BndcO1
 RaWNoOq2rHw41gJH0Tx0QAeF+Vq0azON0qzjS2k/ySkNwYr105q4xyq4yblNBwnv
 EVgKd4jMDIxzYtNMdoLTKH/1K0fXf2X2rUp23FEXw53fc6jSZQtxYa5VVcrLkiBg
 ==
X-ME-Sender: <xms:ME0WXbPURMDq4pMM7tSrgAWdpccUAP6mL2gGEDP8zfb12gT7fXzdMg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrvddtgdduudegucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhepfffhvffukfhfgggtuggjfgesghdtreertderjeenucfhrhhomhepnfgvohcu
 hfgrmhhulhgrrhhiuceolhgvohesfhgrmhhulhgrrhhirdhnrghmvgeqnecukfhppeeile
 druddvuddrhedtrddvhedvnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlvghosehfrghm
 uhhlrghrihdrnhgrmhgvnecuvehluhhsthgvrhfuihiivgeptd
X-ME-Proxy: <xmx:ME0WXWtmM4amCctfLd9mxnwmmtwd4RI47Zy53baYTAdForHks7jyJQ>
 <xmx:ME0WXZ7O-9gGUkLuWGijXwU87hXe9eX-peJp_0U-c1EvPRrhSVX74Q>
 <xmx:ME0WXY507Rt7x80YkHA66R9NZTZ_5nB9vEqSNQ_Z461mTf0_soxy1A>
 <xmx:Mk0WXbstqGbWLOxZ2NSKtazIfpIm6Qr_k9oQVpqszx0BTVaILF8l_Q>
Received: from localhost (ool-457932fc.dyn.optonline.net [69.121.50.252])
 by mail.messagingengine.com (Postfix) with ESMTPA id 7843F80061;
 Fri, 28 Jun 2019 13:24:00 -0400 (EDT)
Date: Fri, 28 Jun 2019 13:24:01 -0400
From: Leo Famulari <leo@famulari.name>
To: Robert Vollmert <rob@vllmrt.net>
Subject: Re: bug#36380: service urandom-seed takes too long on boot
Message-ID: <20190628172401.GA17073@jasmine.lan>
References: <F88CEF04-9BFA-4886-8A2D-AD84AE278D07@vllmrt.net>
 <20190626154721.GA2999@jasmine.lan> <87zhm3xdfu.fsf@gnu.org>
 <20190627190314.GA7403@jasmine.lan>
 <EA773339-2CC9-486E-99B8-A2E71B34467E@vllmrt.net>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature"; boundary="+HP7ph2BbKc20aGI"
Content-Disposition: inline
In-Reply-To: <EA773339-2CC9-486E-99B8-A2E71B34467E@vllmrt.net>
User-Agent: Mutt/1.12.0 (2019-05-25)
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 36380
Cc: 36380@debbugs.gnu.org, Ludovic Courtès <ludo@gnu.org>
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -1.7 (-)
[Message part 1 (text/plain, inline)]
On Fri, Jun 28, 2019 at 08:47:35AM +0200, Robert Vollmert wrote:
> > On 27. Jun 2019, at 21:03, Leo Famulari <leo@famulari.name> wrote:
> > Perhaps, but if the reason for the slowness on their first boot was a
> > suboptimal /dev/hwrng source, I would expect it to be equally slow for
> > each boot, since we unconditionally read 64 bytes each time.
> 
> It’s 512 bytes, not that that should fundamentally change anything.

Oh right, my bad. It's been a while...

Anyways, this should either work immediately or fail. Aside from
getrandom(2), which we aren't using here, nothing related to this stuff
should ever block, and if it does then it's a bug we need to work
around.

So, I suggest we add a 1 second timeout to this read.

I can work on that next week.
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Sun Sep 7 13:36:08 2025; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.