Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4644278ybe; Mon, 16 Sep 2019 16:09:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9GfrilTvwUaQnF/DMZPcmve6vH7x4ZddE0UanwIzf1IFpOCYxvlv6hVFxl7cR1f7Acwff X-Received: by 2002:a50:8a9d:: with SMTP id j29mr1777613edj.283.1568675366665; Mon, 16 Sep 2019 16:09:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568675366; cv=none; d=google.com; s=arc-20160816; b=PjWJzysneq7BB7gOMhwgM7W/ptm7g27eKP4oNw0+zf2OyI03hiU7XkKCBgQINg5HAc 2ycFuTzRMUVrbxLUtB/ZfL2eZ8ca6KRL7T/AepLuluf8C4i9u9lvB3yLwG7HbRR/LQFF bH+g3LObqDuIeCo+a/4fBVSdxK9h98Jf/dKOhs4lTLrRgIiKSZkiS2Ok4IDruIfTir9c Ku7toOeuYyItCG4YpQxasa7xaQ4mM8WeNhZssh9o+FElr4DvJKidZVq2JnuGZV3KsSCf OCKW2r1oXaJXiZDuDI/wxavnlG9UHKprQ7/14aihNZdFEmICmODaktt22eJYgUJd/YkM 9vaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=vGY772lMZRO+RxPe3yiKJ2HFEo5jrkt8czVBRCefa98=; b=z+Kvddp1Facs5wZXFx9bh4nnv1DEv0eUSclpOycbMTE5pTZeds9CR/+yOWbxPzF0ki tGK69tD1PvT+AEmLBkRNje6Z0K7jM1V2xQ34u/33ut/Lcgd+epSPfqf2GPL0iJSxWVqM PWr/ys+zTCRJWnlC85Dp3dVc23H0MCKdPy7QtCQFxUSSEY4tZM3zWppYOjSdUi323erZ 2/M5RGSYbi+dgNQ+MmmnV1uF+if/M9j3hNmvR7oBc/Lmxa+wy2Qgqd1b1sKQMEe/Ey56 hMrKDaGlgXQ531GqI4IJaX5ld1vS2OwF47BqR1W1fYHoW22S7ityDZkdDH13RMYE39oR 5AcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=Q7JCqBOj; 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 r13si192729ejz.319.2019.09.16.16.07.42; Mon, 16 Sep 2019 16:09:26 -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=@linux-foundation.org header.s=google header.b=Q7JCqBOj; 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 S2389749AbfIPXGI (ORCPT + 99 others); Mon, 16 Sep 2019 19:06:08 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:39981 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390458AbfIPXGH (ORCPT ); Mon, 16 Sep 2019 19:06:07 -0400 Received: by mail-lf1-f68.google.com with SMTP id d17so1274703lfa.7 for ; Mon, 16 Sep 2019 16:06:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vGY772lMZRO+RxPe3yiKJ2HFEo5jrkt8czVBRCefa98=; b=Q7JCqBOjFHRpAm3IIWECi7V0+z1iWHaDOFZaCm6UHZvTzYhkaHhwj14043bgrTO5+M irDuUsnCTLlLSkR5eaTGatxvVbFnXqaZCYAJkoMxi8+1pB0mDlKmdUInEOq+UcizHb9i e+qtbtq9xxZIz3FByFamlLpdLYhAncsgzI69k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vGY772lMZRO+RxPe3yiKJ2HFEo5jrkt8czVBRCefa98=; b=P7a8Tu40BWHC3CCXLy0u/s9y9il+YXA8CtOcjah3rePNAaGMozXHOVR/0narWTkQ89 K8C0P30W4ukZWjShDXeL5tmVIfMuqJ5x2clgTZvFY9jIqxZ/VRfE5DTTyMC9QMJHNJxT wv8G2ZQ96dB1U9SQjxX/sZeewXGgy9/SeMu5nX9XKpsccDv13vpX+RA3qeBPeDgTqV6P ukGir8q3JODIB47CqFrD4kgjfYwQ0LPuVJ6S+igBrlFpg9i93pieGyljg9r4zcNqG2jh wJ+NcX9YVlozykpBzyBeEjKylwpL0/VMVLTpVNED1OObhqFhp2nIwqQjT0cYaTsgr7lJ 3F/g== X-Gm-Message-State: APjAAAX8TMELU4brCgL6695A3OYWO5mf7L0+swqpWPEcsqGH91ecKsn5 hX6kUb8szg34R50rPot1uie+dzZvEKo= X-Received: by 2002:a19:f111:: with SMTP id p17mr308489lfh.187.1568675164974; Mon, 16 Sep 2019 16:06:04 -0700 (PDT) Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com. [209.85.167.41]) by smtp.gmail.com with ESMTPSA id n12sm38369lfh.86.2019.09.16.16.06.04 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Sep 2019 16:06:04 -0700 (PDT) Received: by mail-lf1-f41.google.com with SMTP id q11so1249244lfc.11 for ; Mon, 16 Sep 2019 16:06:04 -0700 (PDT) X-Received: by 2002:ac2:5c11:: with SMTP id r17mr319536lfp.61.1568675164042; Mon, 16 Sep 2019 16:06:04 -0700 (PDT) MIME-Version: 1.0 References: <20190916014050.GA7002@darwi-home-pc> <20190916014833.cbetw4sqm3lq4x6m@shells.gnugeneration.com> <20190916024904.GA22035@mit.edu> <20190916042952.GB23719@1wt.eu> <20190916061252.GA24002@1wt.eu> <20190916172117.GB15263@mit.edu> <20190916230217.vmgvsm6o2o4uq5j7@srcf.ucam.org> In-Reply-To: <20190916230217.vmgvsm6o2o4uq5j7@srcf.ucam.org> From: Linus Torvalds Date: Mon, 16 Sep 2019 16:05:47 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Linux 5.3-rc8 To: Matthew Garrett Cc: "Theodore Y. Ts'o" , Willy Tarreau , Vito Caputo , "Ahmed S. Darwish" , Lennart Poettering , Andreas Dilger , Jan Kara , Ray Strode , William Jon McCann , "Alexander E. Patrakov" , zhangjs , linux-ext4@vger.kernel.org, lkml Content-Type: text/plain; charset="UTF-8" Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Mon, Sep 16, 2019 at 4:02 PM Matthew Garrett wrote: > > The semantics many people want for secure key generation is urandom, but > with a guarantee that it's seeded. And that is exactly what I'd suggest GRND_SECURE should do. The problem with: > getrandom()'s default behaviour at present provides that is that exactly because it's the "default" (ie when you don't pass any flags at all), that behavior is what all the random people get who do *not* really intentionally want it, they just don't think about it. > Changing the default (even with kernel warnings) seems like > it risks people generating keys from an unseeded prng, and that seems > like a bad thing? I agree that it's a horrible thing, but the fact that the default 0 behavior had that "wait for entropy" is what now causes boot problems for people. Linus