diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-06-18 14:23:48 +0200 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-06-30 13:58:31 +0200 |
commit | b94217adc97449ab0f3cf07ad253e1e7e15e0aec (patch) | |
tree | 071159685776f2f037265d4034c902b15b519c5f | |
parent | a5e31659cfebf74949096300617d847a4dcccba9 (diff) | |
download | u-boot-b94217adc97449ab0f3cf07ad253e1e7e15e0aec.zip u-boot-b94217adc97449ab0f3cf07ad253e1e7e15e0aec.tar.gz u-boot-b94217adc97449ab0f3cf07ad253e1e7e15e0aec.tar.bz2 |
efi_selftest: can't have measured device-tree with kaslr-seed
Test that we don't have a /chosen/kaslr-seed property if we measure the
device-tree.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
-rw-r--r-- | lib/efi_selftest/efi_selftest_fdt.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/efi_selftest/efi_selftest_fdt.c b/lib/efi_selftest/efi_selftest_fdt.c index aa3b13a..a4b0cef 100644 --- a/lib/efi_selftest/efi_selftest_fdt.c +++ b/lib/efi_selftest/efi_selftest_fdt.c @@ -227,6 +227,13 @@ static int execute(void) return EFI_ST_FAILURE; } } + if (IS_ENABLED(CONFIG_EFI_TCG2_PROTOCOL_MEASURE_DTB)) { + str = get_property(u"kaslr-seed", u"chosen"); + if (str) { + efi_st_error("kaslr-seed with measured fdt\n"); + return EFI_ST_FAILURE; + } + } if (IS_ENABLED(CONFIG_RISCV)) { u32 fdt_hartid; |