Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03DE5C433F5 for ; Mon, 10 Jan 2022 14:31:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235558AbiAJObQ (ORCPT ); Mon, 10 Jan 2022 09:31:16 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:46439 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235500AbiAJObO (ORCPT ); Mon, 10 Jan 2022 09:31:14 -0500 Received: from cwcc.thunk.org (pool-108-7-220-252.bstnma.fios.verizon.net [108.7.220.252]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 20AET4vh001081 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 Jan 2022 09:29:06 -0500 Received: by cwcc.thunk.org (Postfix, from userid 15806) id A1D5115C00C8; Mon, 10 Jan 2022 09:29:04 -0500 (EST) Date: Mon, 10 Jan 2022 09:29:04 -0500 From: "Theodore Ts'o" To: "Jason A. Donenfeld" Cc: Marcelo Henrique Cerri , Simo Sorce , Greg Kroah-Hartman , Jeffrey Walton , Stephan Mueller , Linux Crypto Mailing List , Willy Tarreau , Nicolai Stange , LKML , Arnd Bergmann , "Eric W. Biederman" , "Alexander E. Patrakov" , "Ahmed S. Darwish" , Matthew Garrett , Vito Caputo , Andreas Dilger , Jan Kara , Ray Strode , William Jon McCann , zhangjs , Andy Lutomirski , Florian Weimer , Lennart Poettering , Peter Matthias , Eric Biggers , Neil Horman , Randy Dunlap , Julia Lawall , Dan Carpenter , Andy Lavr , Petr Tesarik , John Haxby , Alexander Lobakin , Jirka Hladky Subject: Re: [PATCH v43 01/15] Linux Random Number Generator Message-ID: References: <20211210014337.xmin2lu5rhhe3b3t@valinor> <20220110132349.siplwka7yhe2tmwc@valinor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 10, 2022 at 03:11:46PM +0100, Jason A. Donenfeld wrote: > On Mon, Jan 10, 2022 at 2:24 PM Marcelo Henrique Cerri > wrote: > > Hoping that might help with the discussion and to explain why I do > > consider those solutions a "hack", that's the patch we've been using > > so far to achieve SP 800-90B compliance: > > > > https://kernel.ubuntu.com/~mhcerri/0001-UBUNTU-SAUCE-random-Use-Crypto-API-DRBG-for-urandom-.patch > > Thanks for sending this in response to my request for it in our private thread. > > Just to confirm, this little patch here gives you FIPS certification? There might be some FIPS certification labs that might be willing to be taken in by the jitterentropy story, but when I've had private communications from people who are familiar with the Intel microarchitecture saying that jitterentropy is mostly "security by obscurity", I'd be strongly opposed to replacing the current scheme with something which is purely jitteretropy. Perhaps an build-time option where one of the seeds into the CRNG is "jitterentropy", but we keep everything else. That way, jitterentropy can still be TSA-style "security theatre", but we're not utterly dependant on the "the CPU microarchitecture is SOOOOOOO complicated, it *must* be unpredictable". - Ted