From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1D655C43334 for ; Wed, 6 Jul 2022 12:24:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YYq+7817s2ZYvTV5I3bjDG+uyeioCbuIGEX1ljJMV6U=; b=p1RgaVm+BS80ZA bM8tcrOMtTFisl58WO9yYE+CilI+qUW2rtdIn7ZJLGokXEpeYUVjhLmLVDbtktn0tIqKJswgZLkoe 0BJfLkNZtU89W9Dopj1ZNcLYuZG+wT7iw1+L6vDHC+wM9ql2U19Cd/qsTv7G08fcAnHN9f8HZ/lTz eW1McCyHuazfLypytGWsbPfETK4CoVO+4xAYHmNIOQNAez0HJ0zkPDPBVcDqjB/Ma8RBV+HkjcF2o dJ05UwOyJN1RbAjvsa2Uo3UApf8SvkxaHeKQaGchyeAf7mOOCY2IdDyDtBBfFzMAOwkxZqM59i3lr tzgaDdYLh/+xX6vTJ6KQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o944J-009tsh-HX; Wed, 06 Jul 2022 12:23:47 +0000 Received: from mail.skyhub.de ([5.9.137.197]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o944E-009tqc-FH for linux-arm-kernel@lists.infradead.org; Wed, 06 Jul 2022 12:23:45 +0000 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 6AAC51EC0554; Wed, 6 Jul 2022 14:23:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1657110211; 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=wRdQIXL+RCAyyd72uEUIKY6ww/WujnqY3JOF3eBRCiU=; b=rdh8t6RFc0gGt9G7tiGczrhFL/KSKJRLZe9z6ziieJGHXPuN46/Wx0tgG2eu18eZZHq/6u XqBPTMWfxRifBHoav2tz0EDz93YQXWAy36Yq4MltpFTjWiu4ZebUZOyXzE/oVOAM+QiOBG FkmSrY+t2bnotZdQZMoN34logw4SzC4= Date: Wed, 6 Jul 2022 14:23:31 +0200 From: Borislav Petkov To: "H. Peter Anvin" 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" Message-ID: References: <20220705190121.293703-1-Jason@zx2c4.com> <11C903CC-22A7-48EE-AD63-E71CC8D28B88@zytor.com> <805B66CB-D847-4547-B6EE-C4FB72B75765@zytor.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <805B66CB-D847-4547-B6EE-C4FB72B75765@zytor.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220706_052342_683315_8520C6C8 X-CRM114-Status: UNSURE ( 9.59 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Jul 05, 2022 at 04:11:45PM -0700, H. 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. I guess you can add some logic to rdrand_long() to sanity-check what it returns... But would that be worth the effort? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel