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 A2AFFC433EF for ; Tue, 11 Jan 2022 17:11:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243138AbiAKRLB (ORCPT ); Tue, 11 Jan 2022 12:11:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243128AbiAKRLA (ORCPT ); Tue, 11 Jan 2022 12:11:00 -0500 Received: from cavan.codon.org.uk (cavan.codon.org.uk [IPv6:2a00:1098:84:22e::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C05AC06173F; Tue, 11 Jan 2022 09:11:00 -0800 (PST) Received: by cavan.codon.org.uk (Postfix, from userid 1000) id 0C042424F9; Tue, 11 Jan 2022 17:10:59 +0000 (GMT) Date: Tue, 11 Jan 2022 17:10:59 +0000 From: Matthew Garrett To: "Alexander E. Patrakov" Cc: Theodore Ts'o , Andy Lutomirski , "Jason A. Donenfeld" , Marcelo Henrique Cerri , Simo Sorce , Greg Kroah-Hartman , Jeffrey Walton , Stephan Mueller , Linux Crypto Mailing List , Willy Tarreau , Nicolai Stange , Linux Kernel Mailing List , Arnd Bergmann , "Eric W. Biederman" , "Ahmed S. Darwish" , Vito Caputo , Andreas Dilger , Jan Kara , Ray Strode , William Jon McCann , zhangjs , Florian Weimer , Lennart Poettering , Peter Matthias , Neil Horman , Randy Dunlap , Julia Lawall , Dan Carpenter , Andy Lavr , Petr Tesarik , John Haxby , Alexander Lobakin , Jirka Hladky , Eric Biggers Subject: Re: [PATCH v43 01/15] Linux Random Number Generator Message-ID: <20220111171059.GA10674@srcf.ucam.org> References: <20220111041349.GA5542@srcf.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Jan 11, 2022 at 02:57:54PM +0500, Alexander E. Patrakov wrote: > LD_PRELOAD is not a solution because of containers and statically-linked > binaries. No, it doesn't solve all problems, but the question is whether it needs to. We're talking about the scenario where: a) a customer requires FIPS compliance, and b) the customer has an app that calls getrandom() and doesn't fallback, and c) they're doing so with statically linked binaries or container infrastructure that doesn't allow injection of other libraries How common is this? Does the kernel need to solve this scenario?