Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5725557ybe; Tue, 17 Sep 2019 12:26:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7sh0FJIs1aq+mUNPID98Uep/99+zv7V6W+nUTNxqEPu+HNdWLIPORg2g679UXxaZC1KTP X-Received: by 2002:a17:906:860d:: with SMTP id o13mr6229711ejx.284.1568748409783; Tue, 17 Sep 2019 12:26:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568748409; cv=none; d=google.com; s=arc-20160816; b=DtwC9AjY1IDY0ZKf1zJ80BHkY7AhyoYWp3W9J+vRiodumEBLJUwXs98GWgrCWBdVg/ vFXd4Eg0KuDYFsM/CXFtUoJD1pXZCIpa4G+e1mBg6PCHsmZQwzNKZv/GIjjCgZpDsTSj dseXa0Vk/1TWDDT+G9Zu3QrijUXbnnjU8ZT4sAEFoo+yBu/8B3SumkLv6xj6RRUcBXpE FyDWHyKPV+REqRLYKt5JZBkS0YK19TD1nW0fn5dak6fOiBZAgFSuXvEyAi4ArBPy3CZN QgqRwA/3FKUMFe/Wk/3tvp5Z7+vUd4LtdINBmMc9wEQxeIN/HHH7qGriiyLQv0J1w/L3 qE6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Fx+sdLrbbMO3EWgs8sTQWDVcw7BxviYLKx2x+SxaOiQ=; b=YEsrc+dGIvkgKYFlFFe9Iouk/f0tfjP6PBllM9LlM2QJa9V+shKMGVRPWpC8VLIsov FIVxz4s1qzDnpPPAae3ig+nccipDK0OTa56XBinPokIVk8cqrpcYRMlwUcVkvDwN6AoL YqkiroYM4VW0J7a4KMP8e9c9Z15BxSoKmgXLsLj3PuMlrP6QpD1z9hGl5EHiLw4RCI9s Cko6N8SSFrUlpHGNGgUVaKdK8+U/+/AWmncyU2TG5NoC0oFPMBryWiWgT/zyHDzNP3ef SOx4KDhaEMLTfV1Zwrf/Ynv1sXQ5TwaGeb/ZXYqWDe8xqWiWZOwAZ1g9RwlM4FRNAiGo rmgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UE7uJ0z3; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s27si1959221edm.226.2019.09.17.12.26.24; Tue, 17 Sep 2019 12:26:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UE7uJ0z3; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726565AbfIQRlk (ORCPT + 99 others); Tue, 17 Sep 2019 13:41:40 -0400 Received: from mail-lf1-f53.google.com ([209.85.167.53]:35370 "EHLO mail-lf1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbfIQRlk (ORCPT ); Tue, 17 Sep 2019 13:41:40 -0400 Received: by mail-lf1-f53.google.com with SMTP id w6so3591457lfl.2; Tue, 17 Sep 2019 10:41:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Fx+sdLrbbMO3EWgs8sTQWDVcw7BxviYLKx2x+SxaOiQ=; b=UE7uJ0z3dchGQ5s2pw5h8c5mOBn3HzdG/7+5VHOfgUWXBZKF8c/3EMk5ve0IR5foXS LtYt39+luyTdw1z+xN8Ew/oqH9NS1n8JzUByPe9t4CPPfLC93kHIIilrKh0ZDcNTIOjH PzcGZ9ZXHoIGTdxZPvr8Xqe7zIjQ99pfDXfAZvUBoGfAkC7nXha2hvZ0M3E2OUU3+hQi QMuEWWuhhP/5qYkE3iZfGX0zYPV3td6Pv45OMVhKC6USE7FfEftA+TRntaJVYXM7DsR1 TIfJb1pUMuAzayWJUfHZXGxS3FpbGZArIM13W0WpG82HulfZBCMC9jiINBD69WrKHdq6 tfkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Fx+sdLrbbMO3EWgs8sTQWDVcw7BxviYLKx2x+SxaOiQ=; b=oYdZ78YVZkd2n3va//+magcfeN684aT6z9eZgkH/WIuGbxEaOH2HGn4NZBFCHTpKwo +i5dpbRYr/JEQIrtIEyXMrf/yuhpYZzkbp81L1bQ9JAnXaXlKEnZqq/BMq20ct43NgLV 281UGKDvrNwKSEcZmfmqIfK7pDupzIeKPoIIk878pCA1ARNE85fbKfDEeWJTaumWfXFA evYtV4sIm6HRCPWeFqCB5GzhAcGg9rCJvRkP+hwoECY4rr6+3MmlpdV7PSFx0NOdTjcv /CFP3P0H61PPTS8HHUbyVxlDIxQ1fJPrWlSov8SMjCTvcxluMMHCqX+A0ymnDq3ss8GS bung== X-Gm-Message-State: APjAAAUT6dJttGOh2XEMKlHtTuU5GisUYsKpHV2kx6DHr+2o/dqyE6mo +uzQMNWJuoKzKJXVjJ0fqzkR/NmRfUSZTQ== X-Received: by 2002:a19:f11c:: with SMTP id p28mr2714006lfh.44.1568742096338; Tue, 17 Sep 2019 10:41:36 -0700 (PDT) Received: from ?IPv6:2a02:17d0:4a6:5700::72c? ([2a02:17d0:4a6:5700::72c]) by smtp.googlemail.com with ESMTPSA id w13sm549636lfk.47.2019.09.17.10.41.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Sep 2019 10:41:35 -0700 (PDT) Subject: Re: Linux 5.3-rc8 To: Willy Tarreau , Lennart Poettering Cc: Linus Torvalds , Matthew Garrett , "Ahmed S. Darwish" , "Theodore Y. Ts'o" , Vito Caputo , Andreas Dilger , Jan Kara , Ray Strode , William Jon McCann , zhangjs , linux-ext4@vger.kernel.org, lkml References: <20190917052438.GA26923@1wt.eu> <2508489.jOnZlRuxVn@merkaba> <6ae36cda-5045-6873-9727-1d36bf45b84e@gmail.com> <20190917173036.GC31798@gardel-login> <20190917173225.GE27999@1wt.eu> From: "Alexander E. Patrakov" Message-ID: <69d8cabe-9285-a01e-ae78-57838e886c9a@gmail.com> Date: Tue, 17 Sep 2019 22:41:33 +0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: <20190917173225.GE27999@1wt.eu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-PH Content-Transfer-Encoding: 8bit Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 17.09.2019 22:32, Willy Tarreau пишет: > On Tue, Sep 17, 2019 at 07:30:36PM +0200, Lennart Poettering wrote: >> On Di, 17.09.19 21:58, Alexander E. Patrakov (patrakov@gmail.com) wrote: >> >>> I am worried that the getrandom delays will be serialized, because processes >>> sometimes run one after another. If there are enough chained/dependent >>> processes that ask for randomness before it is ready, the end result is >>> still a too-big delay, essentially a failed boot. >>> >>> In other words: your approach of adding delays only makes sense for heavily >>> parallelized boot, which may not be the case, especially for embedded >>> systems that don't like systemd. >> >> As mentioned elsewhere: once the pool is initialized it's >> initialized. This means any pending getrandom() on the whole system >> will unblock at the same time, and from the on all getrandom()s will >> be non-blocking. > > He means that all process will experience this delay until there's enough > entropy. > > Willy Indeed, my wording was not clear enough. Linus' patch has a 5-second timeout for small entropy requests, after which they get converted to the equivalent of urandom. However, in the following shell script: #!/bin/sh p1 p2 if both p1 and p2 ask for a small amount of entropy before crng is fully initialized, and do nothing that produces more entropy, the total delay will be 10 seconds. -- Alexander E. Patrakov