Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2692450imw; Wed, 6 Jul 2022 10:06:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tlH4Dtoj32caB8f1xKMO/C50956VSma85kdoOd+m6rz63bxT2KHo2eCPD1jX0zra5YHERc X-Received: by 2002:a17:90b:4d85:b0:1ef:9fd2:b789 with SMTP id oj5-20020a17090b4d8500b001ef9fd2b789mr10649708pjb.196.1657127218055; Wed, 06 Jul 2022 10:06:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657127218; cv=none; d=google.com; s=arc-20160816; b=N022NaBmopuACphvD3CpU2wA/EwbjgX1A1SsnlO8fKnv+ADhtzIEIP/DQdMjFNkM40 KOfRx19Lzh84rtx45xTq00ZifjdxQSZd560rDtnbEjeB87lY8nPq8xDj245EyZoSjkFq cqdWT9Xc50GqfxsreaMn5ZfJNik0CJ6Vl1/gBEG0FtlMdrnT+lrlDC+DSeCfuNF0YK0+ NHSY4jaQn1K7IeNycmMiSSOEM1bb0kxR1gqlH6zfei68v4U7R8TGYQKjsw/ackl4GCst wzJ70FGFpLtLudUNky2n3NURWpfvgDnSM5aUfC3GjEb0caLqisMFomiFSej4A7Gd8dkP P7gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature:dkim-filter; bh=zQoEvTxnDh6zWBd1c1ezKVw870QaKisAdMJsMEZ0XiI=; b=AwYf2wAvOcnrEaIDIrZnD1GW/6iLNAFI2o5lsmV6rhAuwO81RmbCxMe4I2NxpxrXt8 dL6BBg8y2wi9+MsVjfB5m1htiolw5ZgN2M9vV7KRrh8Z+Ts3rRPY08sZlZiOAlRW88/U T9ySODRvOrMj0YPd7ubHl10Rg+vCYrAnOZ9bS0/3+nP/Kp5kCdxXIz+R5zLXyczQYgb4 4QdzOzWnbty+CNO2ax7OJfEsGTaJckcggy1C++2d12q067FAtgWCmwFlYo/WT9yT+Emu 3TEXSXL3AAZ5iQstN9cBlj4XlL+bV6DNQUS4JOrizvoEGbae5P2BUpq9h8y6YLyT255n IMpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2022060401 header.b="uod/87Km"; 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=zytor.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f130-20020a636a88000000b0040db38fbe6dsi47704672pgc.618.2022.07.06.10.06.45; Wed, 06 Jul 2022 10:06:58 -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=@zytor.com header.s=2022060401 header.b="uod/87Km"; 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=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234076AbiGFQng (ORCPT + 99 others); Wed, 6 Jul 2022 12:43:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233954AbiGFQnb (ORCPT ); Wed, 6 Jul 2022 12:43:31 -0400 Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1600CEAA; Wed, 6 Jul 2022 09:43:29 -0700 (PDT) Received: from [127.0.0.1] ([73.223.250.219]) (authenticated bits=0) by mail.zytor.com (8.17.1/8.15.2) with ESMTPSA id 266Ggp781236933 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Wed, 6 Jul 2022 09:42:51 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 266Ggp781236933 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2022060401; t=1657125775; bh=zQoEvTxnDh6zWBd1c1ezKVw870QaKisAdMJsMEZ0XiI=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=uod/87KmlxnlFtaMoLSH+a3zy87aEMycqPjViqWSmbrvXTDJePOvAvh4NdfmXjyOo /nZjEuDksvqEeMFeyvv3nNTJaLGMHrWkIQZOgcNcM3isnB2T3CVCzQYI731tr8Huo6 7H2oEO54ACpyb6iUmo0L2mcfUpp9aQvoLhDCxBbnm5v+FW3EtXCUH3XJpeWQHzzhV/ eulgCmnqbY02rNDoS+WZNu79Fosli2i61lGLIGLfx3DdGltUdPqnFp6O9bBcgBWMam 2PXfzTFX5aQgK0eGmJfiwxbYGBVaUAWny3Ktqh+1F919S48/9ocINv7En1vi36fb0T n+NARfx8eOcGg== Date: Wed, 06 Jul 2022 09:42:49 -0700 From: "H. Peter Anvin" To: Borislav Petkov CC: "Jason A. Donenfeld" , 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 , Greg Kroah-Hartman , Arnd Bergmann Subject: Re: [PATCH] random: remove CONFIG_ARCH_RANDOM and "nordrand" User-Agent: K-9 Mail for Android In-Reply-To: References: <20220705190121.293703-1-Jason@zx2c4.com> <11C903CC-22A7-48EE-AD63-E71CC8D28B88@zytor.com> <805B66CB-D847-4547-B6EE-C4FB72B75765@zytor.com> Message-ID: <0A608F00-CDC0-494E-AC57-69BA0E3F547F@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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_PASS,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 July 6, 2022 5:23:31 AM PDT, Borislav Petkov wrote: >On Tue, Jul 05, 2022 at 04:11:45PM -0700, H=2E Peter Anvin wrote: >> What I'm wondering is if we shouldn't be simply instrument *every* >> invocation, and set the trust to zero if we ever trip it=2E > >I guess you can add some logic to rdrand_long() to sanity-check what it >returns=2E=2E=2E > >But would that be worth the effort? > I think doing it centrally, as non-arch-specific code, and letting it subs= ume ad hoc checks for known failure conditions could be a win=2E