Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5664391ybe; Tue, 17 Sep 2019 11:30:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqyuefXb8+t3m8x2NoxZmztCJiD1sQVkD3Essdy5PyEGE9u3Hf0ecoQkQx8bjUPauY4r7sDg X-Received: by 2002:a50:a532:: with SMTP id y47mr6054625edb.273.1568745051212; Tue, 17 Sep 2019 11:30:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568745051; cv=none; d=google.com; s=arc-20160816; b=ETdyxRgCHqNE8wIy1NoDetlpwICNRmGW2xOUopbEsM8PPgdeuEzOkW5APIIoIH7LFe KtnuzQyB4hKrSjYg7hJjH4k5BCl0mFXnsBQM6SX0hR+50Z5vHr1z5M1ikAX5hnXIDIpc VDFfTycddvWK+qXXCs2pMCElZt2eG3RkaT+/t2rs/T0nWy3GpOounjgNgVaacPzy/fLU nnxC9lf1Pb70y9ClyV8UWuV3SIogV/hNS+crhxVL71IkoLJMcnqAogh53vvUtkuix7RZ VWJa+hKItDkFeK1kvxmk4wLFZ4GYNN/StMjFZIyvbZiZPu/tzM7XNUMa2fWKv2lgbTs0 VYHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=EpIFEZ7DYM7R6taDMCGJ85GZJfJoa36ZEtJEkLRYWnc=; b=Kt0KkGP+w5pv9g5Wd+tAYX222164xR1aE8t2qKON3T9WEK671D8N0KN0gRfh/+kyfH 2kKXLnuoJJ+orwU/308PPoTUgnWRlJq27VRIK/4ef3XjTCcwNtyoj9HD//j8iqqqsuwf S2Db14gAmyOCPuKM7CZugnjdWYmjpn4mcnMqo8n/yYUkBrYKjFGbCG3NJc8O/OFSp4zx 1h5ejyECamTd/SRKR13nqjWO/xcJ8Tm7Y5PP46ajK4WmhmZvdy/G28r34YaaUdHDOHtK kKt8OgxPzRWiMYtnqwd7FBXL8vCOrW0ruWwbHLoyVv4JaIqofJCvWMORoXCNAWGBylWS aEBg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h12si1766333edq.437.2019.09.17.11.30.18; Tue, 17 Sep 2019 11:30:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726170AbfIQP5r (ORCPT + 99 others); Tue, 17 Sep 2019 11:57:47 -0400 Received: from gardel.0pointer.net ([85.214.157.71]:40574 "EHLO gardel.0pointer.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725971AbfIQP5q (ORCPT ); Tue, 17 Sep 2019 11:57:46 -0400 Received: from gardel-login.0pointer.net (gardel.0pointer.net [IPv6:2a01:238:43ed:c300:10c3:bcf3:3266:da74]) by gardel.0pointer.net (Postfix) with ESMTP id 4BBA1E80FFC; Tue, 17 Sep 2019 17:57:44 +0200 (CEST) Received: by gardel-login.0pointer.net (Postfix, from userid 1000) id EB22F160ADC; Tue, 17 Sep 2019 17:57:43 +0200 (CEST) Date: Tue, 17 Sep 2019 17:57:43 +0200 From: Lennart Poettering To: "Theodore Y. Ts'o" Cc: Willy Tarreau , Matthew Garrett , Linus Torvalds , "Ahmed S. Darwish" , Vito Caputo , Andreas Dilger , Jan Kara , Ray Strode , William Jon McCann , "Alexander E. Patrakov" , zhangjs , linux-ext4@vger.kernel.org, lkml Subject: Re: Linux 5.3-rc8 Message-ID: <20190917155743.GB31567@gardel-login> References: <20190917052438.GA26923@1wt.eu> <2508489.jOnZlRuxVn@merkaba> <20190917121156.GC6762@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190917121156.GC6762@mit.edu> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Di, 17.09.19 08:11, Theodore Y. Ts'o (tytso@mit.edu) wrote: > On Tue, Sep 17, 2019 at 09:33:40AM +0200, Martin Steigerwald wrote: > > Willy Tarreau - 17.09.19, 07:24:38 CEST: > > > On Mon, Sep 16, 2019 at 06:46:07PM -0700, Matthew Garrett wrote: > > > > >Well, the patch actually made getrandom() return en error too, but > > > > >you seem more interested in the hypotheticals than in arguing > > > > >actualities.> > > > > If you want to be safe, terminate the process. > > > > > > This is an interesting approach. At least it will cause bug reports in > > > application using getrandom() in an unreliable way and they will > > > check for other options. Because one of the issues with systems that > > > do not finish to boot is that usually the user doesn't know what > > > process is hanging. > > > > I would be happy with a change which changes getrandom(0) to send a > kill -9 to the process if it is called too early, with a new flag, > getrandom(GRND_BLOCK) which blocks until entropy is available. That > leaves it up to the application developer to decide what behavior they > want. Note that calling getrandom(0) "too early" is not something people do on purpose. It happens by accident, i.e. because we live in a world where SSH or HTTPS or so is run in the initrd already, and in a world where booting sometimes can be very very fast. So even if you write a program and you think "this stuff should run late I'll just getrandom(0)" it might not actually be that case IRL because people deploy it a slightly bit differently than you initially thought in a slightly differently equipped system with other runtime behaviour... Lennart