Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1739787
| From | Javier Martinez Canillas <javierm@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [tpmdd-devel] [PATCH v3 0/5] Call GetEventLog before ExitBootServices |
| Date | 2017-09-26 13:20 +0200 |
| Message-ID | <utW4a-42r-25@gated-at.bofh.it> (permalink) |
| References | <urIoF-qm-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 09/20/2017 10:13 AM, Thiebaud Weksteen via tpmdd-devel wrote:
> With TPM 1.2, the ACPI table ("TCPA") has two fields to recover the Event
> Log Area (LAML and LASA). These logs are useful to understand and rebuild
> the final values of PCRs.
>
> With TPM 2.0, the ACPI table ("TPM2") does not contain these fields
> anymore. The recommended method is now to call the GetEventLog EFI
> protocol before ExitBootServices.
>
> Implement this method within the EFI stub and create a copy of the logs
> for the TPM device using a Linux-specific EFI configuration table
> (LINUX_EFI_TPM_EVENT_LOG). This will create
> /sys/kernel/security/tpm0/binary_bios_measurements for TPM 2.0 devices
> (similarly to the current behaviour for TPM 1.2 devices).
>
> Two formats for the log entries exist: TPM 1.2 (SHA1) and TPM 2.0 (Crypto
> Agile). This patch set only retrieves the first type of logs. The second
> type will be implemented in a subsequent patch set.
>
> According to the specifications[1], once GetEventLog has been called,
> future events shall be stored in a separate EFI configuration table
> (EFI_TCG2_FINAL_EVENTS_TABLE). Events stored in this table are not
> processed in this patch set as they are stored in the Crypto Agile format.
> These could eventually be merged with the new table for a unified view
> of the logs from userspace.
>
> [1] TCG EFI Protocol Specification, Revision 00.13, March 30, 2016
> https://trustedcomputinggroup.org/wp-content/uploads/EFI-Protocol-Specification-rev13-160330final.pdf
>
> -------------------------------------------------------------------------------
>
> Patchset Changelog:
>
> Version 3:
> - Move event log providers (acpi and of) to tpm_eventlog_*.c
> - Move efi changes from PATCH 3 to PATCH 2
> - Change return value of tpm_read_log_acpi and tpm_read_log_of
> - Change iounmap to memunmap calls
> - Use log_tbl as variable name for consistency
> - Fix kbuild failures
>
Thanks for addressing the things I pointed out. For the whole patch-set:
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Tested-by: Javier Martinez Canillas <javierm@redhat.com>
Best regards,
--
Javier Martinez Canillas
Software Engineer - Desktop Hardware Enablement
Red Hat
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v3 0/5] Call GetEventLog before ExitBootServices Thiebaud Weksteen <tweek@google.com> - 2017-09-20 10:20 +0200
[PATCH v3 1/5] tpm: move tpm_eventlog.h outside of drivers folder Thiebaud Weksteen <tweek@google.com> - 2017-09-20 10:20 +0200
[PATCH v3 2/5] tpm: rename event log provider files Thiebaud Weksteen <tweek@google.com> - 2017-09-20 10:20 +0200
Re: [PATCH v3 2/5] tpm: rename event log provider files Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2017-09-26 13:20 +0200
Re: [PATCH v3 0/5] Call GetEventLog before ExitBootServices Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2017-09-21 17:20 +0200
Re: [tpmdd-devel] [PATCH v3 0/5] Call GetEventLog before ExitBootServices Javier Martinez Canillas <javierm@redhat.com> - 2017-09-26 13:20 +0200
csiph-web