From: "Gerd Hoffmann" <kraxel@redhat.com>
To: Doug Flick <dougflick@microsoft.com>
Cc: "devel@edk2.groups.io" <devel@edk2.groups.io>,
"ardb+tianocore@kernel.org" <ardb+tianocore@kernel.org>,
"quic_llindhol@quicinc.com" <quic_llindhol@quicinc.com>,
"sami.mujawar@arm.com" <sami.mujawar@arm.com>
Subject: Re: [edk2-devel] Assistance Needed: ArmVirtPkg
Date: Tue, 7 May 2024 12:48:27 +0200 [thread overview]
Message-ID: <bd2qwn3tj73fmcfcie6vjh6gpza7uk22im4nwslniuhlinuluh@uo5wfdmdvv3o> (raw)
In-Reply-To: <CY5PR21MB3684925973AEB527F87BFC82B31C2@CY5PR21MB3684.namprd21.prod.outlook.com>
On Mon, May 06, 2024 at 10:22:07PM GMT, Doug Flick wrote:
> All,
>
> In order to patch Tianocore Bugzilla issues and CVEs:
> 4541 – Bug 08 - edk2/NetworkPkg: Predictable TCP ISNs (tianocore.org)<https://bugzilla.tianocore.org/show_bug.cgi?id=4541>
> and
> 4542 – Bug 09 - edk2/NetworkPkg: Use of a Weak PseudoRandom Number Generator (tianocore.org)<https://bugzilla.tianocore.org/show_bug.cgi?id=4542>
>
> I've added as a dependency Hash2CryptoDxe and RngDxe lib to NetworkPkg. I've been able to add the relevant libraries to the DSCs of OvmfPkg and EmulatorPkg however I'm seeing odd behavior with ArmVirtPkg.
>
> Would someone more knowledgeable with ArmVirtPkg take a look this PR.
Both OVMF and ArmVirt use the virtio random number device as
source for random numbers.
Driver: OvmfPkg/VirtioRngDxe
Some Background: https://wiki.qemu.org/Features/VirtIORNG
Typically the virtio rng device is present in virtual machine
configurations. It might be missing though.
I'd recommend:
(1) Do *not* add RngDxe to OvmfPkg and ArmVirtPkg dsc files, instead
continue to depend on VirtioRngDxe.
(2) Keep the time-based not-really-random RNG generator as fallback in
case EFI_RNG_PROTOCOL is not present (possibly requiring a PCD
being set so the fallback option can be disabled at build time).
HTH & take care,
Gerd
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#118642): https://edk2.groups.io/g/devel/message/118642
Mute This Topic: https://groups.io/mt/105949609/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
next prev parent reply other threads:[~2024-05-07 10:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-06 22:22 [edk2-devel] Assistance Needed: ArmVirtPkg Doug Flick via groups.io
2024-05-07 10:48 ` Gerd Hoffmann [this message]
2024-05-07 15:17 ` Ard Biesheuvel
2024-05-07 22:28 ` Doug Flick via groups.io
2024-05-07 23:19 ` Ard Biesheuvel
2024-05-07 23:40 ` Doug Flick via groups.io
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bd2qwn3tj73fmcfcie6vjh6gpza7uk22im4nwslniuhlinuluh@uo5wfdmdvv3o \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox