Re: [PATCH v3 2/5] fdt: kaslr seed from RNG device

Simon Glass
2023-09-21T01:03:22Z

On Tue, 12 Sept 2023 at 15:35, <seanedmond@linux.microsoft.com> wrote:
>
> From: Dhananjay Phadke <dphadke@linux.microsoft.com>
>
> Add support for KASLR seed from the RNG device. Invokes dm_rng_read()
> API to read 8-bytes of random bytes. Performs the FDT fixup using event
> spy. To enable use CONFIG_KASLR_RNG_SEED
>
> Signed-off-by: Dhananjay Phadke <dphadke@linux.microsoft.com>
> Signed-off-by: Drew Kluemke <ankluemk@microsoft.com>
> Signed-off-by: Sean Edmond <seanedmond@microsoft.com>
> ---
> common/fdt_support.c | 36 ++++++++++++++++++++++++++++++++++++
> lib/Kconfig | 7 +++++++
> 2 files changed, 43 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>

Note that with VBE this is deterministic, in that the kernel declares
what it wants. See bootmeth_vbe_ft_fixup()