Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5314289pxb; Sun, 13 Feb 2022 16:29:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJwKrkxHlFU4iXbeUdUNIOBL/r8aS54VCqbjPzGqj1dm+ffZIk+my0DyUUvRyZc4ZzouZFB/ X-Received: by 2002:a65:42c4:: with SMTP id l4mr9500329pgp.505.1644798573168; Sun, 13 Feb 2022 16:29:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644798573; cv=none; d=google.com; s=arc-20160816; b=A4Ur5jd8Tn9tixit2IzJZRF12QuMRi+g/itoxI4gg6rh80/LXR2L4nnrC/l3/CzBap AZ3V+1rRylvbtfuIci5r/f7LhZVOi8fLwmfIwXn6gLJlKd4omSGl3ETRPhPZvDtDrr9X 6wiU+0Gbb9hMv8wdfjXMD3tBWczhMlDZlIMN3cXgDx1DKzaAwrCT0S1IGsfa4zVnUbFQ MFP6DKsLKkzUKw/uwaUmBSqM5x3BxgrILicwG+y4+0yaLMYmIRqM+JTIIH8f6jJ7tLjE mrwH7kK4gIwsFgYCOfTAsEfARjKdc/6jW8D/gqTo2ZwPoUqN/q6o+4ilwgJvE/REqviY yrtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=5zf6jVEQjwVSQ5ZFeHnTKZGFpRdZHZ64iwTJ9Ju+0KE=; b=cUXl+MzhxiDwBeYmmPzg8oTRhfHerXuDvwqB9TgO2H9AdvCDsrKEMkNTKHmxoVgpHF J3lHiTEGNJ3MeBJfcCXiRL6/tDdbvC4bGHV2LOROzQ2tcTEJuUFpJqudDsG6QiliDlck GvSVDKt5Lfo/elzceaP26T7Byt6RgZRcefhLnf76VLtr6+f5CZnKtBa8RgM7/cQRf2PL VawXVRHhvCBbLAHJSqtqNNIYMJ4VifTnc0viWsfxCEzEwlqva3JUW1LyMKUvM6+YGv4X 1RE6JDu5eGghSo3i87m4tmiL5DNDzm8Re78C+LPAoc7EVpFTl1sjli54/d7U39io4gdn 0zLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=LlFvrTcC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f124si28326305pgc.261.2022.02.13.16.29.11; Sun, 13 Feb 2022 16:29:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=LlFvrTcC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244307AbiBKWK5 (ORCPT + 93 others); Fri, 11 Feb 2022 17:10:57 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:42606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353972AbiBKWKy (ORCPT ); Fri, 11 Feb 2022 17:10:54 -0500 X-Greylist: delayed 572 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 11 Feb 2022 14:10:52 PST Received: from new3-smtp.messagingengine.com (new3-smtp.messagingengine.com [66.111.4.229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85DCACF9; Fri, 11 Feb 2022 14:10:52 -0800 (PST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id E34C75800E8; Fri, 11 Feb 2022 17:01:17 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 11 Feb 2022 17:01:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=5zf6jVEQjwVSQ5ZFe HnTKZGFpRdZHZ64iwTJ9Ju+0KE=; b=LlFvrTcCq1B+2kEzvZkHLSNkaWQr+m3ZZ +0eNXDEcpgjZKJLxRPUU7XKWitNaITB5A24lv7mV5wFNdlg0F/oFQoyenr8w1mH/ tzlG/0nSoAwyu/3ZvJ3nf/TvNmpBOrTo9uwSCv+QOqVFmJo7zB8bXWV8br2jfFt4 8YpVXRleEQuGoWwUV9YZ0z4iJYJjLa2bSPfcjSbC51AF5Su871F1cf9viY3KmNcN QrZMKWh8gPwaTrVWg2hQWLmVHydYnu0E5QTrExMqSyupjRb0QuPAmAMctEZeFKpX S0LNElQDEz4zuHSkj2fotjAV8Fx+pSnHiwVFUtso3CkNry6xR44/w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrieefgdduheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffujgfkfhggtgesthdtredttddtvdenucfhrhhomhephfhinhhnucfv hhgrihhnuceofhhthhgrihhnsehlihhnuhigqdhmieekkhdrohhrgheqnecuggftrfgrth htvghrnhepffduhfegfedvieetudfgleeugeehkeekfeevfffhieevteelvdfhtdevffet uedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepfh hthhgrihhnsehlihhnuhigqdhmieekkhdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 11 Feb 2022 17:01:12 -0500 (EST) Date: Sat, 12 Feb 2022 09:01:19 +1100 (AEDT) From: Finn Thain To: "Jason A. Donenfeld" cc: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org, Geert Uytterhoeven , linux-m68k@lists.linux-m68k.org, Thomas Bogendoerfer , linux-mips@vger.kernel.org, Dominik Brodowski , Eric Biggers , Ard Biesheuvel , Arnd Bergmann , Thomas Gleixner , Andy Lutomirski , Kees Cook , Lennart Poettering , Linus Torvalds , Greg Kroah-Hartman , Theodore Ts'o Subject: Re: [PATCH RFC v0] random: block in /dev/urandom In-Reply-To: <20220211210757.612595-1-Jason@zx2c4.com> Message-ID: References: <20220211210757.612595-1-Jason@zx2c4.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 11 Feb 2022, Jason A. Donenfeld wrote: > + * Reading from /dev/random and /dev/urandom both the same effect as > + * calling getrandom(2) with flags=0. In earlier versions, however, > + * they each had vastly different semantics and should therefore be > + * avoided to prevent backwards compatibility issues. If the end result "should be avoided", then why bother? IOW, how does this improve the ABI? I know you said it's a "panacea" but I'm afraid that's not clear to me and the patch description doesn't explain it.