From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 5A019941B7E for ; Tue, 14 May 2024 19:55:24 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=/lO5yDhYssGOhRQBpmHNg8C6pn/TRTRpn+WmlU34sXU=; c=relaxed/simple; d=groups.io; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:To:Cc:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20240206; t=1715716522; v=1; b=EQ4AY4ZWmYyzHHIcyGyzBLnNR4ao0qVrOwqj3J12UraiHfGRE87PgccSRYYlYmjN3BUOjMdf eTmAepj9dKpn31LL5v6A333tKFSSUHXZhWnEbEp2kJynmx6CiN/P69fR0V/ykFQmOh2c2+rF0WX VkdttUQ42D0PwLJD4+buPtL06caGbY6afb+cGUPvGfg3ofxKo1EdwD7KQBBCoLOZYLws30MOuFN 738CBFcnJxTYe04GPk2P0lkNPeysou2mMUBE2nXldWrQlFDGIlhEb22PfNhBTwv0kEnptZ6pzNW ZoAIgpV99NmprJC7LmkyugCPFQp33vlrmvkDgIJ0sOMzg== X-Received: by 127.0.0.2 with SMTP id SaBkYY7687511xEPT1k6tpDr; Tue, 14 May 2024 12:55:22 -0700 X-Received: from mail-ua1-f54.google.com (mail-ua1-f54.google.com [209.85.222.54]) by mx.groups.io with SMTP id smtpd.web10.3402.1715716521744086891 for ; Tue, 14 May 2024 12:55:21 -0700 X-Received: by mail-ua1-f54.google.com with SMTP id a1e0cc1a2514c-7f386d05eb8so1023215241.2 for ; Tue, 14 May 2024 12:55:21 -0700 (PDT) X-Gm-Message-State: MINXyOAYGMkjqurszLZi5tMzx7686176AA= X-Google-Smtp-Source: AGHT+IGi96+EYaqFwgtwDXFVAm31vjGzAOD7egFF/2gJJbyzMOAls/KCtWH5i/mpW3h8gRo6msdOgi5L4s0b6HgHzLY= X-Received: by 2002:a05:6102:290a:b0:47c:2b74:2903 with SMTP id ada2fe7eead31-48077e5d76fmr11884408137.22.1715716520577; Tue, 14 May 2024 12:55:20 -0700 (PDT) MIME-Version: 1.0 References: <004001daa274$8de608e0$a9b21aa0$@byosoft.com.cn> <32021.1715361185999490629@groups.io> In-Reply-To: From: "Pedro Falcato" Date: Tue, 14 May 2024 20:55:09 +0100 Message-ID: Subject: =?UTF-8?B?UmU6IFtlZGsyLWRldmVsXSDlm57lpI06IFtlZGsyLWRldmVsXSBbUEFUQ0ggdjIgMDMvMTNdIE92bWZQa2c6UGxhdGZvcm1DSTogU3VwcG9ydCB2aXJ0aW8tcm5nLXBjaQ==?= To: devel@edk2.groups.io, kraxel@redhat.com Cc: ardb@kernel.org, dougflick@microsoft.com, gaoliming Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Tue, 14 May 2024 12:55:21 -0700 Resent-From: pedro.falcato@gmail.com Reply-To: devel@edk2.groups.io,pedro.falcato@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=EQ4AY4ZW; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io On Mon, May 13, 2024 at 10:23=E2=80=AFAM Gerd Hoffmann via groups.io wrote: > > On Sat, May 11, 2024 at 10:40:23AM GMT, Ard Biesheuvel wrote: > > As I pointed out before, on the ARM side there are a few intersecting > > issues with these changes. (On x86, this is mostly avoided due to the > > fact that RDRAND is universally supported) (citation needed. since 2012 on Intel's side, 2015 on AMD, but with lots of broken implementations along the way) > > Well, it's not that easy on x86 either. > > Current state of affairs is that the time based LibRng is used, all > OvmfPkg / ArmVirtPkg have this: > > RngLib|MdeModulePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf > > So, this is what will be used if something uses LibRng. Note that OVMF can't switch to BaseRngLib (and use rdrand/whatever ARM is supplying for RNG), because you'll crash a bunch of systems: https://github.com/tianocore/edk2/blob/4b6ee06a090d956f80b4a92fb9bf03098a37= 2f39/MdePkg/Library/BaseRngLib/Rand/RdRand.c#L125-L131 I had submitted a patch that dealt with this a while back (and tried to detect broken impls such as AMD zen returning all-1s), but it got ghosted :) --=20 Pedro -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#118893): https://edk2.groups.io/g/devel/message/118893 Mute This Topic: https://groups.io/mt/106013302/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-