From: Masahisa Kojima <masahisa.kojima@linaro.org> To: Heinrich Schuchardt <xypron.glpk@gmx.de>, Alexander Graf <agraf@csgraf.de>, Ilias Apalodimas <ilias.apalodimas@linaro.org>, Simon Glass <sjg@chromium.org>, Masahisa Kojima <masahisa.kojima@linaro.org>, Dhananjay Phadke <dphadke@linux.microsoft.com>, AKASHI Takahiro <takahiro.akashi@linaro.org>, u-boot@lists.denx.de Subject: [PATCH v4 0/5] add measurement support Date: Fri, 13 Aug 2021 16:12:38 +0900 [thread overview] Message-ID: <20210813071243.18885-1-masahisa.kojima@linaro.org> (raw) This patch series add the support of measurement descibed in TCG PC Client PFP spec(Version 1.05 Revision 23). Eventlog generated with this patch series are tested on the aarch64 based machine(Socionext Developerbox) and fTPM running on OP-TEE. The eventlog result is almost same result as the one generated by edk2 running on the Devloperbox and Secure96. This patch series does not cover all measurement requirements described in TCG spec, the remaining items will be supported in the future. Major missing items in TCG PC Client PFP spec: 1) If the secure boot variables are updated after they are initially measured in PCR[7] and before ExitBootServices() has completed, the platform MAY be restarted OR the variables MUST be remeasured into PCR[7]. 2) SMBIOS structure measurement 3) "DeployedMode" and "AuditMode" measurement 4) EV_EFI_GPT_EVENT event 5) Measurement of U-boot itself. I assume U-boot measurement will be done by the former firmware such as trusted firmware. Masahisa Kojima (5): efi_loader: add secure boot variable measurement efi_loader: add boot variable measurement efi_loader: add ExitBootServices() measurement efi_loader: refactor efi_append_scrtm_version() efi_loader: add comment for efi_tcg2.h include/efi_loader.h | 5 + include/efi_tcg2.h | 77 +++++++- include/tpm-v2.h | 18 +- lib/efi_loader/efi_boottime.c | 25 +++ lib/efi_loader/efi_tcg2.c | 356 +++++++++++++++++++++++++++++++++- 5 files changed, 471 insertions(+), 10 deletions(-) -- 2.17.1
next reply other threads:[~2021-08-13 7:12 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-08-13 7:12 Masahisa Kojima [this message] 2021-08-13 7:12 ` [PATCH v4 1/5] efi_loader: add secure boot variable measurement Masahisa Kojima 2021-08-13 7:12 ` [PATCH v4 2/5] efi_loader: add " Masahisa Kojima 2021-08-13 7:12 ` [PATCH v4 3/5] efi_loader: add ExitBootServices() measurement Masahisa Kojima 2021-08-14 8:28 ` Heinrich Schuchardt 2021-08-14 9:06 ` Heinrich Schuchardt 2021-08-16 0:33 ` Masahisa Kojima 2021-08-13 7:12 ` [PATCH v4 4/5] efi_loader: refactor efi_append_scrtm_version() Masahisa Kojima 2021-08-13 7:12 ` [PATCH v4 5/5] efi_loader: add comment for efi_tcg2.h Masahisa Kojima
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210813071243.18885-1-masahisa.kojima@linaro.org \ --to=masahisa.kojima@linaro.org \ --cc=agraf@csgraf.de \ --cc=dphadke@linux.microsoft.com \ --cc=ilias.apalodimas@linaro.org \ --cc=sjg@chromium.org \ --cc=takahiro.akashi@linaro.org \ --cc=u-boot@lists.denx.de \ --cc=xypron.glpk@gmx.de \ --subject='Re: [PATCH v4 0/5] add measurement support' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).