Skip to content

Commit

Permalink
efi: libstub/tpm: enable tpm eventlog function for ARM platforms
Browse files Browse the repository at this point in the history
Wire up the existing code for ARM that loads the TPM event log into
OS accessible buffers while running the EFI stub so that the kernel
proper can access it at runtime.

Tested-by: Zou Cao <zoucao@linux.alibaba.com>
Signed-off-by: Xinwei Kong <kong.kongxinwei@hisilicon.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
  • Loading branch information
Xinwei Kong authored and Ard Biesheuvel committed Nov 7, 2019
1 parent 0d95981 commit d99c1ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/firmware/efi/libstub/arm-stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ unsigned long efi_entry(void *handle, efi_system_table_t *sys_table,
goto fail_free_cmdline;
}

efi_retrieve_tpm2_eventlog(sys_table);

/* Ask the firmware to clear memory on unclean shutdown */
efi_enable_reset_attack_mitigation(sys_table);

Expand Down

0 comments on commit d99c1ba

Please sign in to comment.