Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5047751ybe; Tue, 17 Sep 2019 01:30:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZj/Wu1toaN/NC1ybz1V/ZDevnT1+ffiDC7cNKazabejPhnL23oIK9TNc1w4QStc73Nn7/ X-Received: by 2002:a05:6402:1590:: with SMTP id c16mr3431153edv.104.1568709055940; Tue, 17 Sep 2019 01:30:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568709055; cv=none; d=google.com; s=arc-20160816; b=ysEsJG76FqoYQ9o0t9+6i4/ZDMCKkCaqoaH+g5DYZQgann8VGxKxo9RbXKEJRiFJ2Z m+91T5hi8uYNTKImNlG9bLIrI5miDj1OoMvCW5M0gJi8B7CBHPPOJdE9RbSse9pMBELr CN+7v+DZkR6opZGw3vyjQnvZiNGANREB4C0z10l98gBlpiBY4lSwdLQkxXJbKYR1s/O7 FvTdQ0CVGN3EPU7mV5tzYptwvDwKJd82fQ1F2MGpxUTqjj5gJxgJpF+JQCKtbbeRuxvO feTC6qfT2bCApnS0t9ZCgz7vwbq/s0WU1e3rBCMUIIymo6MYrkM9rBPMt2Dlgh+u6ItS PaAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:message-id:from:cc:to :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature; bh=vVkn2O/9lGVNrbPzlDo6XOPFmZ8O6RHYGV95uzIF1K4=; b=QzXGKuziWgUwR7EhysJpHsMm8cdAbFq01nUV+tCzG8nH4D8bKOrqpO2QvIu7qpWZ4q fkvYkRPMYRmLrZwKDAwpGdAHLFYZyDi5IOwwW0XQQMGpU+ie+7D67XEtda++YOkqiOVw j8bfnTp2zS6oAdifHQd7HatFSaG6c4W6/Ytu1xJPCzT7cWj/lkhTn64rz2JYUcdAbRKF sbqj3MehVnYQAFO1N/W2LsBE18o4MM+YJZju6Hft6th1hVh4mbDnKs6k7mX/ErtyMNR8 JqEKSuzfMB4sJwL7FjEOMOhk6Pcvl3jPQrZppwEFadSX9NZLqIfQYwkHsPBZA2wKdrzy 09dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@codon.org.uk header.s=63138784 header.b=xHErRN1q; 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 w11si692607eji.160.2019.09.17.01.30.23; Tue, 17 Sep 2019 01:30:55 -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=fail header.i=@codon.org.uk header.s=63138784 header.b=xHErRN1q; 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 S1728405AbfIQCHP (ORCPT + 99 others); Mon, 16 Sep 2019 22:07:15 -0400 Received: from cavan.codon.org.uk ([93.93.128.6]:48057 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728556AbfIQCHP (ORCPT ); Mon, 16 Sep 2019 22:07:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=codon.org.uk; s=63138784; h=Subject:Message-ID:From:CC:To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To: Date:Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=vVkn2O/9lGVNrbPzlDo6XOPFmZ8O6RHYGV95uzIF1K4=; b=xHErRN1qIc/xI/5awjhwSFsV39 Jd9w5VmsEBkVcocyN4+byYKC0GvQw6HOLfxqIGFvGkmhMLkHpkK7APEYxO1WvsGH0CUhzKlGGbygr RAUxRzG0L+yl27dmbBDl2HOHvXNGY76txjx0WFC6l+aRu4i59Oek1fIlAqQE5MpUQLhE=; Received: from 199-83-223-235.public.monkeybrains.net ([199.83.223.235] helo=[192.168.1.141]) by cavan.codon.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1iA2tG-000305-SF; Tue, 17 Sep 2019 03:06:53 +0100 Date: Mon, 16 Sep 2019 18:46:07 -0700 User-Agent: K-9 Mail for Android In-Reply-To: References: <20190916042952.GB23719@1wt.eu> <20190916061252.GA24002@1wt.eu> <20190916172117.GB15263@mit.edu> <20190916230217.vmgvsm6o2o4uq5j7@srcf.ucam.org> <20190916231103.bic65ab4ifv7vhio@srcf.ucam.org> <20190916232922.GA7880@darwi-home-pc> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: Linus Torvalds CC: "Ahmed S. Darwish" , "Theodore Y. Ts'o" , Willy Tarreau , Vito Caputo , Lennart Poettering , Andreas Dilger , Jan Kara , Ray Strode , William Jon McCann , "Alexander E. Patrakov" , zhangjs , linux-ext4@vger.kernel.org, lkml From: Matthew Garrett Message-ID: X-SA-Do-Not-Run: Yes X-SA-Exim-Connect-IP: 199.83.223.235 X-SA-Exim-Mail-From: mjg59@srcf.ucam.org Subject: Re: Linux 5.3-rc8 X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: No (on cavan.codon.org.uk); Unknown failure Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 16 September 2019 18:41:36 GMT-07:00, Linus Torvalds wrote: >On Mon, Sep 16, 2019 at 6:24 PM Matthew Garrett >wrote: >> >> Exactly the scenario where you want getrandom() to block, yes=2E > >It *would* block=2E Just not forever=2E It's already not forever - there's enough running in the background of tha= t system that it'll unblock eventually=2E=20 >And btw, the whole "generate key at boot when nothing else is going >on" is already broken, so presumably nobody actually does it=2E If nothing ever did this, why was getrandom() designed in a way to protect= against this situation?=20 >See why I'm saying "hypothetical"? You're doing it again=2E > >> >Then you have to ignore the big warning too=2E >> >> The big warning that's only printed in dmesg? > >Well, the patch actually made getrandom() return en error too, but you >seem more interested in the hypotheticals than in arguing actualities=2E If you want to be safe, terminate the process=2E --=20 Matthew Garrett | mjg59@srcf=2Eucam=2Eorg