Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp1801366ybj; Sun, 22 Sep 2019 12:13:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqja29QB152F5ppd2du2bWHPDSYDjj/RB7l4qa1/R16eQU8UKKxwIrlGr0napvlhgIey2m X-Received: by 2002:a17:906:2794:: with SMTP id j20mr17808327ejc.291.1569179621072; Sun, 22 Sep 2019 12:13:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569179621; cv=none; d=google.com; s=arc-20160816; b=mOE2jFrV0ws7h0Zw4nuBxAugTG/RzH1tJ06M1GzDKt4Hklrnv4Bo44S0rthSIdDF7l LKFSsu17Dv9fLNG5LFgdimPff8lGXpw7jNH4c9WGtl3qQrJ6/HAV7lhS/q1M0hr8deEc d26fdPFlqlnjK81v489CsM6LMcn/aZDlYBTKVqHvZ/f2Xl8xXKh54BZM02l4G6crlcdj gj9OQvg9hNbimp/9+TzdNrZmn15dW7WeEfCd/l25YJplHZIrUIy6N/obtZF/ZR0HCDn5 WYaT1S8lERQhmgJGvp3/DtrH8NAp3oewAokc414FdKPm5q+KrUHtCM4GIUtX8Npn0o2a b1kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=qAtb+1HVEGoy39fGcffWq34Yzm9F5iGQDsKcLAlaBWo=; b=hp39NgniF1Vp4LxsBaL5fZZZIUVMiGNso3HhVyxyIWldh5KWthbBwSw4D/f1XH7EpU MJTfxgAIpPZAjRpvKDIGWzhkF9EW7Oz82Lc6S5pY8GPAjerh5T2jYjx8vR+4iGfWPqvk s6n28PrOvhkwcFa7aN+s+r3+bfUQw/8aJ/Lcj7n+UtrCBGxWx3J49IbGEGyo0gcgoYNZ Z5issLC9S+EFxftG6MiISKsXIEBKqONu9AYe/wzdJSM6ptyrbILomINNFVDbakmN53SK ff8/iopGCorSGMEImUShbwwyDPIGpk0NlC/w/+pMuK3WRoMbDapQdHXAp0/tqBLDoytj oUqw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c4si5523520edb.387.2019.09.22.12.13.16; Sun, 22 Sep 2019 12:13:41 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730827AbfIUGHY (ORCPT + 99 others); Sat, 21 Sep 2019 02:07:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45896 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730891AbfIUGHV (ORCPT ); Sat, 21 Sep 2019 02:07:21 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 37FF518C4269; Sat, 21 Sep 2019 06:07:18 +0000 (UTC) Received: from oldenburg2.str.redhat.com (ovpn-116-24.ams2.redhat.com [10.36.116.24]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D86AB5D9C9; Sat, 21 Sep 2019 06:07:13 +0000 (UTC) From: Florian Weimer To: Linus Torvalds Cc: Andy Lutomirski , "Ahmed S. Darwish" , Lennart Poettering , "Theodore Y. Ts'o" , "Eric W. Biederman" , "Alexander E. Patrakov" , Michael Kerrisk , Willy Tarreau , Matthew Garrett , lkml , Ext4 Developers List , Linux API , linux-man Subject: Re: [PATCH RFC v4 1/1] random: WARN on large getrandom() waits and introduce getrandom2() References: <20190912034421.GA2085@darwi-home-pc> <20190912082530.GA27365@mit.edu> <20190914122500.GA1425@darwi-home-pc> <008f17bc-102b-e762-a17c-e2766d48f515@gmail.com> <20190915052242.GG19710@mit.edu> <20190918211503.GA1808@darwi-home-pc> <20190918211713.GA2225@darwi-home-pc> <20190920134609.GA2113@pc> Date: Sat, 21 Sep 2019 08:07:12 +0200 In-Reply-To: (Linus Torvalds's message of "Fri, 20 Sep 2019 11:09:53 -0700") Message-ID: <87blvefai7.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.62]); Sat, 21 Sep 2019 06:07:18 +0000 (UTC) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org * Linus Torvalds: > Violently agreed. And that's kind of what the GRND_EXPLICIT is really > aiming for. > > However, it's worth noting that nobody should ever use GRND_EXPLICIT > directly. That's just the name for the bit. The actual users would use > GRND_INSECURE or GRND_SECURE. Should we switch glibc's getentropy to GRND_EXPLICIT? Or something else? I don't think we want to print a kernel warning for this function. Thanks, Florian