lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <157355442380.29376.1364588538431617460.tip-bot2@tip-bot2>
Date:   Tue, 12 Nov 2019 10:27:03 -0000
From:   "tip-bot2 for Xinwei Kong" <tip-bot2@...utronix.de>
To:     linux-tip-commits@...r.kernel.org
Cc:     Zou Cao <zoucao@...ux.alibaba.com>,
        Xinwei Kong <kong.kongxinwei@...ilicon.com>,
        Ard Biesheuvel <ardb@...nel.org>,
        Ingo Molnar <mingo@...nel.org>, Borislav Petkov <bp@...en8.de>,
        linux-kernel@...r.kernel.org
Subject: [tip: efi/core] efi: libstub/tpm: enable tpm eventlog function for
 ARM platforms

The following commit has been merged into the efi/core branch of tip:

Commit-ID:     d99c1ba6a73b9e93e2884b7893fe19e3c082ba03
Gitweb:        https://git.kernel.org/tip/d99c1ba6a73b9e93e2884b7893fe19e3c082ba03
Author:        Xinwei Kong <kong.kongxinwei@...ilicon.com>
AuthorDate:    Thu, 07 Nov 2019 16:24:21 +08:00
Committer:     Ard Biesheuvel <ardb@...nel.org>
CommitterDate: Thu, 07 Nov 2019 10:18:45 +01:00

efi: libstub/tpm: enable tpm eventlog function for ARM platforms

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@...ux.alibaba.com>
Signed-off-by: Xinwei Kong <kong.kongxinwei@...ilicon.com>
Signed-off-by: Ard Biesheuvel <ardb@...nel.org>
---
 drivers/firmware/efi/libstub/arm-stub.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/firmware/efi/libstub/arm-stub.c b/drivers/firmware/efi/libstub/arm-stub.c
index c382a48..817237c 100644
--- a/drivers/firmware/efi/libstub/arm-stub.c
+++ b/drivers/firmware/efi/libstub/arm-stub.c
@@ -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);
 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ