Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1195333rdb; Tue, 30 Jan 2024 10:32:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IHhY1eirK3srxAr1y3bzB0xrs3UgHhjaMtewOe/waZ5FaDhk6He1Yc9xrcp9QN1k0V8zMf/ X-Received: by 2002:a17:906:4719:b0:a27:af7:bba5 with SMTP id y25-20020a170906471900b00a270af7bba5mr6715936ejq.22.1706639566736; Tue, 30 Jan 2024 10:32:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706639566; cv=pass; d=google.com; s=arc-20160816; b=PPIutne3/YSsiGe5aknh13uIAOuKq9Qwatd/GAvFNtGKN8uu7pSqeP07w6D0Gi1Ch+ yqyX5DFpQZmxqjy8aAEOpvmS9CXJCENLyuNCTw7MHUnAB1eAy3Zs0MO7po+aZsFPvUrY wyN7RYmg8ylA0yUDmBU6F/xl/27HEMOzaOfefgOFDld4mKy/KxkgcIBmZboiJCVlOnsE BLesPha62bJVzcnySDI8NjuRzLoypdHtBojjwU0TAbDuSRoCa/fBhlBr6ymCToKHvTBE XpaInl251tBSSxHreGeR58JzDyUez6x9USEAgXoNKmPVdLQ1mpy3o9W+EBSeOj6qy3oi nTag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=PnXqJccyWXUwaQ8U04P/DqGmNUTJucKfYaSYurjfy/k=; fh=f1l6EMFoHIBGV8mc8Hv2qKtaGBP1ErDajIGTkCJuFJg=; b=Qup/fmyusy12AlDNzdCW5Zt7F+Xp+Zs4gBlNMpE5HXs952WPRJypkkHmJATQ0u8p6/ 6NReA7pF3tJr4a7hBZbN9Cgs6oJvQqkK2GLcpNbr2Y8NCmwNCtaRLPhLRJNRYLE/hjgF 2BVk4iEqgD0hlxRodYPwsO9KnAKU2oBMaCSanuxRJmhNBg0L6nJGHFLRSn+X6H74bIB1 2Lyxm+iFQIIaBbmJLkX7argzb9RGeP/rKYXH9IX6aT0ylA4J40twBimB/E3WuyylazRP 9dSY78m0E/m6duTIE+o9kbfDZXCl2GM4ejMQiGtUJ9VqR/bXO9wLmqxppHVvKZ7u/C7i 7ZDA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=mC12iSFm; arc=pass (i=1 dkim=pass dkdomain=zx2c4.com); spf=pass (google.com: domain of linux-kernel+bounces-45101-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45101-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id v27-20020a17090606db00b00a35dbeaac35si1780643ejb.853.2024.01.30.10.32.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 10:32:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45101-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=mC12iSFm; arc=pass (i=1 dkim=pass dkdomain=zx2c4.com); spf=pass (google.com: domain of linux-kernel+bounces-45101-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45101-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.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 28D861F2AA1F for ; Tue, 30 Jan 2024 18:24:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32328158D82; Tue, 30 Jan 2024 18:23:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="mC12iSFm" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 501A7158D68 for ; Tue, 30 Jan 2024 18:23:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706639021; cv=none; b=MMyIODp00BVUZyDBas6yK+YpkBZbaJJ84Lo9e82dd9arHZdy3nExUgudVax3QJqwtdHnxMnQomUe8862h23v6paBDJ07MhlERshkxFkRMv/8yl2EnvuUM8xomPcu9TeCJY2pcjgmcOKNFcT6uzoBuctwtI6mfr1SsZRVgOBZZkk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706639021; c=relaxed/simple; bh=1rV7glRVC9LQuVPrfckA+vOHRK9H2274yjWNxzIJzJc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Pp4z3lZHkD3ug25fhZCSkZrhnOsGHAPct77wSOM+vL41+MC35nm4X1JtvgjFO3/ev09aJXG4yNGJ1qlEihfUmdiEP3CEnsOcm/NbEUN6e5mv2S44jBfUVlKugvYClrlK7RmqqOAMjm1SKAQ6VWhv/Yyhcn8ymwlM8J3AdmnQlkg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b=mC12iSFm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3103C433C7 for ; Tue, 30 Jan 2024 18:23:40 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="mC12iSFm" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1706639016; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PnXqJccyWXUwaQ8U04P/DqGmNUTJucKfYaSYurjfy/k=; b=mC12iSFmISRE8/jMAFFM7hVqNh8Z+8J8eZkvsKaCH4IdBWcBQTxK5vLEJLtn51nnJXTps9 LhULkCYWZIoIjrl4M2+wKsp+Krf3bAXwVV6tR80yguXCpVNxvvpV1wu9h7Rw52K8uTinjb 2OU3X3MslNrGw3KQluVuRBxjnhaKMfU= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 99bc7490 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Tue, 30 Jan 2024 18:23:36 +0000 (UTC) Received: by mail-yb1-f178.google.com with SMTP id 3f1490d57ef6-dc6b7df10b9so72545276.0 for ; Tue, 30 Jan 2024 10:23:35 -0800 (PST) X-Gm-Message-State: AOJu0YxYWJtpDmpew+TP8kV07lhgyyzwFkDLrqWVBvtM+ZaZiHuDYvkx F7KR6G/Ydg2eRZSSLKOjX0Xx44FuyyIj1+d1wsKZiOnDkLhDFzZnTTRbL0aC2Siyrqcsdia8Qmn hHnIzPqoZ2m1DIK8+yK6mp/z+BQw= X-Received: by 2002:a05:6902:1b87:b0:dc2:2b0d:613e with SMTP id ei7-20020a0569021b8700b00dc22b0d613emr6377907ybb.10.1706639014139; Tue, 30 Jan 2024 10:23:34 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240130083007.1876787-1-kirill.shutemov@linux.intel.com> <20240130083007.1876787-2-kirill.shutemov@linux.intel.com> <88a72370-e300-4bbc-8077-acd1cc831fe7@intel.com> <81359B1E-5293-4919-B319-59483C1EA12E@zytor.com> In-Reply-To: <81359B1E-5293-4919-B319-59483C1EA12E@zytor.com> From: "Jason A. Donenfeld" Date: Tue, 30 Jan 2024 19:23:23 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] x86/random: Issue a warning if RDRAND or RDSEED fails To: "H. Peter Anvin" Cc: Dave Hansen , "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" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jan 30, 2024 at 7:16=E2=80=AFPM H. Peter Anvin wrot= e: > > On January 30, 2024 9:58:09 AM PST, Dave Hansen w= rote: > >On 1/30/24 09:49, Jason A. Donenfeld wrote: > >>> Anybody disagree? > >> Yes, I disagree. I made a trivial test that shows RDSEED breaks easily > >> in a busy loop. So at the very least, your statement holds true only > >> for RDRAND. > > > >Well, darn. :) > > > >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. > > What CPU is this and could you clarify exactly how you run your busy loop= ? That is already in this thread already. Maybe catch up on the whole thing and then jump back in? https://lore.kernel.org/all/Zbjw5hRHr_E6k18r@zx2c4.com/