Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1192643rdb; Tue, 30 Jan 2024 10:27:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IHjJxWmYM6uzNw9qVNubeRXTfUsvs8GVS/BPegAsTtlPKDByKkCJnGpjzX4e9kI31Y3u5Nk X-Received: by 2002:a05:6358:6a47:b0:176:78bb:d154 with SMTP id c7-20020a0563586a4700b0017678bbd154mr10829005rwh.5.1706639267874; Tue, 30 Jan 2024 10:27:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706639267; cv=pass; d=google.com; s=arc-20160816; b=Soulmhm8y0GJ5ZriBKXjaXCrjll1d10fZyC1CLyCr8oCCu7F7JdPYlr84FpJYRoas1 f3mmnywBId9tZHOCFKcouTnLw+3D3RHhX+ZFaAjvvMlclLMFTnK7Ne/48vfbV1yzPKda kH5IRckhdmLaY3URT1Eyv1uK+myKfQuWj/JxioyQEcuCuJcs128OoG5xH26Di61mo3vS ZfkkImxkhL8lPmQbFLUQ6AK3YK9Z48KEoSvuTkchLyy8hhD2lfCR/eE0xrgZewv0qQWo i5KWpcZJcqTAq3nwncFJsBp0z/Kl8t7lshBGWEi5dusYNBySbzS+JivoZTljPpC7v4+S 4rzw== 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=a1sYTIAW5AD0V6cAd7FYqCUf83efZ/AKDlxt6jV+ahg=; fh=Smw2l67ajKHoIx8R0JGbmlwRwkLRGnp3KVIeT+MI4vc=; b=F1g1KV0Nt0b9nT8QOHL9FZKUhbbmOxGsAHDOB3jTD+HKojke+mp0dZP8RMD6LXwSd8 vjjXo0Wz1jvQoyJlIaV1w613poCfG7Ro9Vbl+BA//YsmjXMP980iJx9BvicZbr9OhyDu y8RT46FhUv4hEs1/zrvBgbQnVUThmoz78a2Mqmcq81C+VVniqZPbpt9vEFKpJPUCIgJx 2FMsIXWZcAAUxkovum4nYdTlsywZL2RyKp0BXGhJDqpYHamTr1cxWrmnoXK54XEl1Kvx 4i8GwWhkAIrkEO1Oq0pajOPOsB9wFqM4GJ3524bJ0uxrWG3jCycvaRiAS2l0GKywiHk5 pQIg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=XYdxOR83; arc=pass (i=1 dkim=pass dkdomain=zx2c4.com); spf=pass (google.com: domain of linux-kernel+bounces-45100-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45100-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id c15-20020a63724f000000b005cdacf9065fsi7757569pgn.720.2024.01.30.10.27.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 10:27:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45100-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=XYdxOR83; arc=pass (i=1 dkim=pass dkdomain=zx2c4.com); spf=pass (google.com: domain of linux-kernel+bounces-45100-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45100-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1C4DFB2690D for ; Tue, 30 Jan 2024 18:24:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 350451586D8; Tue, 30 Jan 2024 18:23:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="XYdxOR83" 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 5A3131586E6 for ; Tue, 30 Jan 2024 18:23:24 +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=1706639004; cv=none; b=mjhpo1VUvx3E1FTj0z9xMoAjjSEaMZO0SNVahdMbhCHi1o96JzNiGIgCc0OHaZdlbBMV9c+lfhMl2YAt8Qy4yRmCchNgqJx+axyMXS7smE1ziOdJxnz74FvINSMtc0AFB+m+l2ALZV18KUxsaZYddCoHndoVGkcG7U6urM6bTlo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706639004; c=relaxed/simple; bh=tFEQWdC7qrSSJgBCf20kPWPQDzbsJc6pm+yZ/F2PHFE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=I9AtL44WjImmtXwO5AjeFb5K8nGuSQiYDGzt7NaEeN41kUPd9Lu7wpsp05DOLTl61VYIX+SJA4OzULMZVve1sd/s/Knv2C++7VvSw/223xW9Eh3YqpYRjjoPvYHGpja7EwwNvn+I4569HhYtunUdZndFIeTTRL9EqU5ukTf4+OQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b=XYdxOR83; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80550C433F1 for ; Tue, 30 Jan 2024 18:23:23 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="XYdxOR83" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1706639001; 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=a1sYTIAW5AD0V6cAd7FYqCUf83efZ/AKDlxt6jV+ahg=; b=XYdxOR83o3fjVUXRBl2LHiTynqtTjbuyX8Eem5XyqKjN+YSj3Byfn976C0o7ZoHqEblhO6 I3LBkfUibJxhG5ki09Ye4Z5Gd8YFqEoZEPd/ywIn74nEhlGIGg4GgK+VGLxRz2j1FtBaat j0wIzUyd1RAAQRd+PViJfiobx3nIgfU= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 2a289956 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Tue, 30 Jan 2024 18:23:21 +0000 (UTC) Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-6002317a427so35468667b3.2 for ; Tue, 30 Jan 2024 10:23:21 -0800 (PST) X-Gm-Message-State: AOJu0Yy8JJpQDew8P9p0Qvp+4AVSLv+bCq/PBumOW82nFOYy02irNrxY ZG5dAIa+VeYbe6NiQvmtZnotDbpq19HJxfZ71J4SpFx+kolvY7yIM/9/d45lnAdMGl9dPZZUj8E WhLatgcF1ClaRcwv/zMtl5SvzVQ8= X-Received: by 2002:a81:8a85:0:b0:600:11f6:2c28 with SMTP id a127-20020a818a85000000b0060011f62c28mr6977021ywg.37.1706638999894; Tue, 30 Jan 2024 10:23:19 -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> In-Reply-To: From: "Jason A. Donenfeld" Date: Tue, 30 Jan 2024 19:23:07 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] x86/random: Issue a warning if RDRAND or RDSEED fails To: Dave Hansen Cc: "Reshetova, Elena" , "Kirill A. Shutemov" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , "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 6:58=E2=80=AFPM Dave Hansen = wrote: > > 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. 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/