[PATCH 1/1] arm: enable DM_RNG on QEMU by default

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH 1/1] arm: enable DM_RNG on QEMU by default

Heinrich Schuchardt
The EFI_RNG_PROTOCOL is needed for address randomization in Linux.
We should provide it by default on QEMU.

Reported-by: François Ozog <[hidden email]>
Signed-off-by: Heinrich Schuchardt <[hidden email]>
---
Resent, cc U-Boot list
---
 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 80702c23d3..4ebedece80 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -935,6 +935,7 @@ config ARCH_QEMU
  select OF_CONTROL
  select PL01X_SERIAL
  imply CMD_DM
+ imply DM_RNG
  imply DM_RTC
  imply RTC_PL031

--
2.28.0

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH 1/1] arm: enable DM_RNG on QEMU by default

Tom Rini-4
On Sat, Sep 19, 2020 at 07:55:35AM +0200, Heinrich Schuchardt wrote:

> The EFI_RNG_PROTOCOL is needed for address randomization in Linux.
> We should provide it by default on QEMU.
>
> Reported-by: François Ozog <[hidden email]>
> Signed-off-by: Heinrich Schuchardt <[hidden email]>

This causes cmd_bootefi_selftest to fail on both qemu_arm and
qemu_arm64.

--
Tom

signature.asc (673 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH 1/1] arm: enable DM_RNG on QEMU by default

Heinrich Schuchardt
On 9/22/20 5:26 PM, Tom Rini wrote:

> On Sat, Sep 19, 2020 at 07:55:35AM +0200, Heinrich Schuchardt wrote:
>
>> The EFI_RNG_PROTOCOL is needed for address randomization in Linux.
>> We should provide it by default on QEMU.
>>
>> Reported-by: François Ozog <[hidden email]>
>> Signed-off-by: Heinrich Schuchardt <[hidden email]>
>
> This causes cmd_bootefi_selftest to fail on both qemu_arm and
> qemu_arm64.
>

Fixed in https://github.com/swarren/uboot-test-hooks.git by:
cf979fcf372c ("u-boot-hooks: add virtio-rng-pci")

Best regards

Heinrich

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH 1/1] arm: enable DM_RNG on QEMU by default

Tom Rini-4
In reply to this post by Heinrich Schuchardt
On Sat, Sep 19, 2020 at 07:55:35AM +0200, Heinrich Schuchardt wrote:

> The EFI_RNG_PROTOCOL is needed for address randomization in Linux.
> We should provide it by default on QEMU.
>
> Reported-by: François Ozog <[hidden email]>
> Signed-off-by: Heinrich Schuchardt <[hidden email]>

Applied to u-boot/master, thanks!

--
Tom

signature.asc (673 bytes) Download Attachment