Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1186971rdb; Tue, 30 Jan 2024 10:16:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IF27IS8GSo1g4ekL8hv2OsH/J3TB/YpV3lXBh5bPTsdxnkmNhA/PT5U+iwsclWQo11lyRiq X-Received: by 2002:a17:906:8888:b0:a35:2758:2278 with SMTP id ak8-20020a170906888800b00a3527582278mr6766594ejc.10.1706638602063; Tue, 30 Jan 2024 10:16:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706638602; cv=pass; d=google.com; s=arc-20160816; b=gYfO6ddvupwxoanlzSjformLaFFXtGB0mTvpAcfeVC67e1y9MeFBzz2m/+hYXtdUdd vNxCVhZ1+KyP9ED48XRinPLvpjHiEzfkSDpI5UYPfC2vvBFJJuHuABx7WwW+d3uPfJ+t lsM49CH6HE3ElON+z47gSbd8gqxyM8T5w+WtQSddUJQ94y98a/j+t5uZSa4mCnY7y3my ukfhBmpba667CMwHQrnvNYAf+i4hxlaAvebNe98H8Pk/isdJLzTucVOsh+KGa34YqlYB w61vBkx0vNxRjs2PUdni0tsUX5ZHshWbVAO9baGRNsBO4NmAbSKYp3ALxa3jAy7UuGHR RHbw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:references:in-reply-to :user-agent:subject:cc:to:from:date:dkim-signature:dkim-filter; bh=9IuvDqCWA9K7ZVPtRnI6fsYZK2Jw9p0d3gEJ4ggS8YI=; fh=Sv2vGRd4JHSPxafxkqLLfcfDSC3Qc2aR6rbdOssQz6w=; b=xyaSLumQU6xcoty2VAeJlpYR9FhYkY9zk1cak8nPzdvUCeGiC66kgrnRZJJFl/Ij/8 KaD/fjkjVHQKVsCqGgHX3eqn3fr23P5hlK4vI+3kFGig/7WbzsMN/jMMsuV6tCqrP2P1 FX8wxb8YDIcfv8yJil9Y4zSH1GZ2k0x8uD4WeBCE2Role7rIB9eBCJBRRKtO7WAx8a/T FdmsbS+/lc8GPMrnjcJyCPf3opZ1sIrWrM+yhOgDaPvNEqZbOGklQAhj0LJm9X7MSdVG eiTnkVOV2zquotJ6A6H+/DcbpR1qfCngeZxeuqm0UEzXEq7tIkOPeqyqp/Cdi+JWlNy0 ATcQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=temperror (no key for signature) header.i=@zytor.com header.s=2024011201 header.b=C31AAD4E; arc=pass (i=1 spf=pass spfdomain=zytor.com dmarc=pass fromdomain=zytor.com); spf=pass (google.com: domain of linux-kernel+bounces-45085-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45085-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v19-20020a1709063bd300b00a3655fd076esi173932ejf.564.2024.01.30.10.16.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 10:16:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45085-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@zytor.com header.s=2024011201 header.b=C31AAD4E; arc=pass (i=1 spf=pass spfdomain=zytor.com dmarc=pass fromdomain=zytor.com); spf=pass (google.com: domain of linux-kernel+bounces-45085-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45085-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CBCE81F265D7 for ; Tue, 30 Jan 2024 18:16:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF3AC155A50; Tue, 30 Jan 2024 18:16:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="C31AAD4E" Received: from mail.zytor.com (terminus.zytor.com [198.137.202.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 485688612D for ; Tue, 30 Jan 2024 18:16:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.136 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706638593; cv=none; b=DJzv3KkOgbFzhLbIVP+3VDfSV+5j72Q7V1rQww3+jhuVOdF6txIyn2L+RduK68gTbk/N3RLnaNLgFn1moyAQPR9EqmUZcNhl3cTu4bKhE1OLy2iCTgABRO8ZKWqwc3XR9LNXFrPkagUtniK/Vg7CW5XwcloLE+/PCp9cJcdwnbQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706638593; c=relaxed/simple; bh=BWz9kVK6FQQXS4Oex4gIWgI2L66Jwn/K/GmLw7QRAnw=; h=Date:From:To:CC:Subject:In-Reply-To:References:Message-ID: MIME-Version:Content-Type; b=cphskZBJTFrStwg4GTtV+BcljQ1YEmYMgu4sk/p4MIpw6a51OuF4VdoOVXyEl50JuvUxPkOGMAgHq9HydteyBink6ClNogxwHGZnFKemtnwSMOJxsDcF4tHx6V1wSKrC0tfwvJ6ErhmdA93UiNuuxZM1xewj6710uBnUlE1+/9M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com; spf=pass smtp.mailfrom=zytor.com; dkim=fail (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b=C31AAD4E reason="signature verification failed"; arc=none smtp.client-ip=198.137.202.136 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=zytor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zytor.com Received: from [IPv6:::1] ([172.56.209.1]) (authenticated bits=0) by mail.zytor.com (8.17.2/8.17.1) with ESMTPSA id 40UIFiuJ2936932 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Tue, 30 Jan 2024 10:15:46 -0800 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 40UIFiuJ2936932 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2024011201; t=1706638548; bh=9IuvDqCWA9K7ZVPtRnI6fsYZK2Jw9p0d3gEJ4ggS8YI=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=C31AAD4EoQAiz5Ane2ovYzxIrT8tPkyWV3KgIJaA0ACqKrToJxWMqtOfzmRXRIBAo skSTGfxG0QiJ8e8t4wwu3RyyziiE+LupJQKNIMPT6O+dBdwEbDsWS6xBDpnS4yB99X xVhptuGSCKCCWqxwmkv/6wNzirsRh9ydyuoBrp7g8aov5sxC2iLd5G2/ev2ILCYWvW TCznr22vtE0t/Puo95c/gEODoo/31ihKivNcHSSSpg8TFUw1Dj68owhfd26E5OOk/c 3wY7tOG2eAZQbaopAZK0FCUFvsxxvxZmkUu8oyRqx0Ke0sfn/+VSf2nPT2sdiC+N7d bPDuRfXvlLa8Q== Date: Tue, 30 Jan 2024 10:15:35 -0800 From: "H. Peter Anvin" To: Dave Hansen , "Jason A. Donenfeld" CC: "Reshetova, Elena" , "Kirill A. Shutemov" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "x86@kernel.org" , "Theodore Ts'o" , Kuppuswamy Sathyanarayanan , "Nakajima, Jun" , Tom Lendacky , "Kalra, Ashish" , Sean Christopherson , "linux-coco@lists.linux.dev" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 2/2] x86/random: Issue a warning if RDRAND or RDSEED fails User-Agent: K-9 Mail for Android In-Reply-To: References: <20240130083007.1876787-1-kirill.shutemov@linux.intel.com> <20240130083007.1876787-2-kirill.shutemov@linux.intel.com> <88a72370-e300-4bbc-8077-acd1cc831fe7@intel.com> Message-ID: <81359B1E-5293-4919-B319-59483C1EA12E@zytor.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On January 30, 2024 9:58:09 AM PST, Dave Hansen = wrote: >On 1/30/24 09:49, Jason A=2E Donenfeld wrote: >>> Anybody disagree? >> Yes, I disagree=2E I made a trivial test that shows RDSEED breaks easil= y >> in a busy loop=2E So at the very least, your statement holds true only >> for RDRAND=2E > >Well, darn=2E :) > >Any chance you could share some more information about the environment >where you're seeing this? It'd be good to reconcile what you're seeing >with how the hardware is expected to behave=2E What CPU is this and could you clarify exactly how you run your busy loop?