GNU bug report logs

#36380 service urandom-seed takes too long on boot

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

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

Received: (at 36380) by debbugs.gnu.org; 22 Mar 2020 20:19:28 +0000
From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 22 16:19:28 2020
Received: from localhost ([127.0.0.1]:50953 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1jG74B-0004To-Ts
	for submit@debbugs.gnu.org; Sun, 22 Mar 2020 16:19:28 -0400
Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:34599)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <leo@famulari.name>) id 1jG74A-0004TX-TV
 for 36380@debbugs.gnu.org; Sun, 22 Mar 2020 16:19:27 -0400
Received: from compute2.internal (compute2.nyi.internal [10.202.2.42])
 by mailout.west.internal (Postfix) with ESMTP id E6932449;
 Sun, 22 Mar 2020 16:19:20 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute2.internal (MEProxy); Sun, 22 Mar 2020 16:19:21 -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=ypugJ9AbXtUaEbomA1PF8EsJ
 eisz5QdiESXTipkE5JQ=; b=PcDh39iC3V4j34DXmuxmWB0ZY0OYKXXiqtDwcYyv
 5d1d53UtvB4kFw3G5hyPX13EN4VZnEmYiBLrV+RXJRAoCja0rQTjCCpQ9TPfzea5
 WaWB1DM7X1eMKf27dyQS6UMobDEl342dSlHSOvH7yzGC4lR2sFMPcwCIgARx8rv2
 RNU=
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=fm2; bh=ypugJ9
 AbXtUaEbomA1PF8EsJeisz5QdiESXTipkE5JQ=; b=UAyEUeMIeWC7VJRSHQZjol
 F36Is68sF02z16mOFfhjG8w30vsuI3AVj7V6dbDLPxYfzHUAsLkU03E5MU/ETCpC
 gTnuJY+RSG/5p3tI/vjZxhoBpGMV6/OrBR4O0Xki/t8dS6/IhQ/QwabrjANJifXT
 kFgPmX/Sh+caZEj+VgT+KXYZ0eRFwg3XCqIrVfCgFfR+H4vlXU7yN9Spf+INZbP7
 z1CxjPNe0itYFJD/FMg4W3kA/jVnOvU2R99ElZKNelXRjucQMjEQtdirQFW8LKCw
 RTZf1gse3ZEAVq1JdlUS8scAODNqKEh4003Oe/magAu+6nUOyzbOOOBvoU4CxoGw
 ==
X-ME-Sender: <xms:SMh3Xh6yp3qYJGeoOO4yf8gmbXbEy563TaBGSuGUSVJZ6FLVDPc7UQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudegiedgudefkecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepnfgvohcu
 hfgrmhhulhgrrhhiuceolhgvohesfhgrmhhulhgrrhhirdhnrghmvgeqnecukfhppeejie
 druddvgedrudefkedrieefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm
 rghilhhfrhhomheplhgvohesfhgrmhhulhgrrhhirdhnrghmvg
X-ME-Proxy: <xmx:SMh3XryfM6I23DZvwqNf3pf6Ax65WlQvc_u1Pe9MM4yI6xU8jLrCtA>
 <xmx:SMh3XoOgWsgbwphho9mPKWASGDJabP7Jw4SSN8aCPytqTzEysb6lwg>
 <xmx:SMh3Xpk5EM_fQcOqHyqhuNqtzvdPyteGQPIxtgiDaVhkMVpP29GxQg>
 <xmx:SMh3XmJwjAZdjYyp3laDZ81pAU_926FLq7cFt6VzJMujd8_4yP1oIw>
Received: from localhost (c-76-124-138-63.hsd1.pa.comcast.net [76.124.138.63])
 by mail.messagingengine.com (Postfix) with ESMTPA id 2174F3061856;
 Sun, 22 Mar 2020 16:19:20 -0400 (EDT)
Date: Sun, 22 Mar 2020 16:19:19 -0400
From: Leo Famulari <leo@famulari.name>
To: Brice Waegeneire <brice@waegenei.re>
Subject: Re: bug#36380: service urandom-seed takes too long on boot
Message-ID: <20200322201919.GC16716@jasmine.lan>
References: <F88CEF04-9BFA-4886-8A2D-AD84AE278D07@vllmrt.net>
 <a24b84c858011117fd9ea7129af7232c@waegenei.re>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <a24b84c858011117fd9ea7129af7232c@waegenei.re>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 36380
Cc: 36380@debbugs.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 (-)
On Sun, Mar 22, 2020 at 08:43:33AM +0000, Brice Waegeneire wrote:
> This article has been updated since then with a section[0] about a fix
> authored by Linus[1][2] and merged in Linux 5.4. The gist of it that now
> `getrandom()' will actively try to collect entropy in early boot, if it
> is missing, by using the CPU jitter. The Debian wiki is saying the same[3].

The issue here is not related to getrandom() or our kernel. I think the
bug is still relevant.

The Guix system unconditionally reads from /dev/hwrng if it exists, and
there is no reason for that to take a noticeable amount of time.

But this bug report revealed that some VPS providers have a broken
deployment that does cause delays. Who knows how they are feeding
/dev/hwrng... they would not reply to my questions.

It doesn't really matter though, the problem is ours to fix.

We need to make this read time out after a second, but in the past I
could not figure out how to do this without crashing the system (I'm not
a strong Schemer).

Help is still wanted!




Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Sun Sep 7 09:48:25 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.