Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1653728imw; Tue, 5 Jul 2022 13:09:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tHqv6laK1wC1Wd9ICW0hpRhARVr/dyM58SyUA32EWye36WNJeGaRIY+rvTdS5lt7qwzr+W X-Received: by 2002:a65:684c:0:b0:411:b3d3:a7f7 with SMTP id q12-20020a65684c000000b00411b3d3a7f7mr24714100pgt.448.1657051740021; Tue, 05 Jul 2022 13:09:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657051740; cv=none; d=google.com; s=arc-20160816; b=CJ+oaT6Sv1i1P+aRZ+CvO6tXvF4BA9OmQEJT8XFrS7d8sGJ0gNhWP0Gme7nfExxNlQ 70iH3A7+UnoSiCmSONI0rDgpehnCTvGuY1O/PXGgXMSmKtXojOuYlyCJR6VvLxzy27BN rAUe0EGjv4cx+7ghqUsR2qO5a9PnZ7ud/3ViLoA98VqMofRuT/9J9sX6+bYxKSjGHhbG 5xxOKlWg/9vjdxYqyzKNvsUbLNKTlSB7qRbA0gXo1XKc7MhyzScNUnhkEfy0koha03EU KlDCeMakG1WKalaaV0qLUiJTP/64a7FifkXyxEJ5cyOlGPb7YrKw3jkz+qY2F3VODmum F0eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=s8J8d5ZD1NtUU5JRSS/ItcYuS6F4P47XpllivMzf87o=; b=RKg8ceIhjhZbAB+9tkIqPev798B3VO9JUwyIFB6GN1cOPJTziaAvo/dvRjl5DrOJBb kKaVzsuiztpxnIRQ1bbCaR4idehdQNdCz8UjZL6ztPhJJVKnn1e+OU1O8ad7u+sUYGdE kbeNzVGCceH2wVx42PcpDxrc4/G4OOr+D364cxXVkxsjnOriGdqyz/jdLZxZPJWfMarb TNIwcIcFetJsEKVJtaOBNRngf2PaGddZfWT48FFL8nPlhX1hKafoQ+sv+oYtSli7kANH 1NG5EvYeGTBcHIdFcUiBi3cWYhzvyBZFCE2AQI6UyrMfrnPIItkZAdzgeUE788w3JKZh YSww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=CYAJFqLP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q3-20020a17090a2e0300b001ed18115032si21259236pjd.7.2022.07.05.13.08.41; Tue, 05 Jul 2022 13:09:00 -0700 (PDT) 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=@alien8.de header.s=dkim header.b=CYAJFqLP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232606AbiGETgc (ORCPT + 99 others); Tue, 5 Jul 2022 15:36:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230135AbiGETgb (ORCPT ); Tue, 5 Jul 2022 15:36:31 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F5FE13FB2; Tue, 5 Jul 2022 12:36:30 -0700 (PDT) Received: from zn.tnic (p200300ea970ff625329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:970f:f625:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id DE0E71EC0628; Tue, 5 Jul 2022 21:36:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1657049785; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=s8J8d5ZD1NtUU5JRSS/ItcYuS6F4P47XpllivMzf87o=; b=CYAJFqLPSx1ehm7wcUphSX9EWalTFYzy2s5e2vW1knuJ2MgMxhOyXFZiKJxRnn65i1LTXx z6QxxfrgCmuNCUqEFoukAoKTL/2V6JEeQCCX4HCRrDpCeDWCRbeLyIZPGE82Hs3kg+czu+ 9EUDiQHULEW8UFb3P8zZIkSHwIX4AB8= Date: Tue, 5 Jul 2022 21:36:20 +0200 From: Borislav Petkov To: "Jason A. Donenfeld" Cc: linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, Catalin Marinas , Will Deacon , Michael Ellerman , Heiko Carstens , Alexander Gordeev , Thomas Gleixner , "H . Peter Anvin" , Greg Kroah-Hartman , Arnd Bergmann Subject: Re: [PATCH] random: remove CONFIG_ARCH_RANDOM and "nordrand" Message-ID: References: <20220705190121.293703-1-Jason@zx2c4.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220705190121.293703-1-Jason@zx2c4.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, 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 Tue, Jul 05, 2022 at 09:01:21PM +0200, Jason A. Donenfeld wrote: > @@ -26,7 +18,6 @@ __setup("nordrand", x86_rdrand_setup); > */ > #define SANITY_CHECK_LOOPS 8 > > -#ifdef CONFIG_ARCH_RANDOM > void x86_init_rdrand(struct cpuinfo_x86 *c) > { > unsigned int changed = 0; > @@ -59,8 +50,6 @@ void x86_init_rdrand(struct cpuinfo_x86 *c) > } > > if (WARN_ON_ONCE(!changed)) > - pr_emerg( > -"RDRAND gives funky smelling output, might consider not using it by booting with \"nordrand\""); > + pr_emerg("RDRAND gives funky smelling output; update microcode or firmware."); It is highly unlikely to get a BIOS or microcode update for that matter, for old systems: 7879fc4bdc75 ("x86/rdrand: Sanity-check RDRAND output") so I guess here you're better off saying that the kernel simply disables rdrand support and do clear_cpu_cap(c, X86_FEATURE_RDRAND); here too. If I read the commit message above correctly, it sounds like RDRAND output is not that important anyway... Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette