mbox series

[v3,0/3] tpm: Preserve TPM measurement log across kexec (ppc64)

Message ID 20220628165820.883222-1-stefanb@linux.ibm.com (mailing list archive)
Headers show
Series tpm: Preserve TPM measurement log across kexec (ppc64) | expand

Message

Stefan Berger June 28, 2022, 4:58 p.m. UTC
The of-tree subsystem does not currently preserve the IBM vTPM 1.2 and
vTPM 2.0 measurement logs across a kexec on ppc64. This series fixes this
for the kexec_file_load() syscall using the flattened device tree (fdt) to
carry the measurement log's buffer across kexec.

   Stefan

Stefan Berger (3):
  tpm: of: Make of-tree specific function commonly available
  of: kexec: Refactor IMA buffer related functions to make them reusable
  tpm/kexec: Duplicate TPM measurement log in of-tree for kexec

 drivers/char/Makefile              |   1 +
 drivers/char/tpm/Makefile          |   1 +
 drivers/char/tpm/eventlog/of.c     |  31 +--
 drivers/char/tpm/eventlog/tpm_of.c |  27 +++
 drivers/of/kexec.c                 | 293 +++++++++++++++++++++++++----
 include/linux/kexec.h              |   6 +
 include/linux/of.h                 |   8 +-
 include/linux/tpm.h                |   5 +
 kernel/kexec_file.c                |   6 +
 9 files changed, 315 insertions(+), 63 deletions(-)
 create mode 100644 drivers/char/tpm/eventlog/tpm_of.c

Comments

Stefan Berger June 28, 2022, 5:25 p.m. UTC | #1
On 6/28/22 12:58, Stefan Berger wrote:
> The of-tree subsystem does not currently preserve the IBM vTPM 1.2 and
> vTPM 2.0 measurement logs across a kexec on ppc64. This series fixes this
> for the kexec_file_load() syscall using the flattened device tree (fdt) to
> carry the measurement log's buffer across kexec.
> 
>     Stefan
> 

v3:
  - Moved TPM Open Firmware related function to 
drivers/char/tpm/eventlog/tpm_of.c

v2:
  - rearranged patches
  - fixed compilation issues for x86


> Stefan Berger (3):
>    tpm: of: Make of-tree specific function commonly available
>    of: kexec: Refactor IMA buffer related functions to make them reusable
>    tpm/kexec: Duplicate TPM measurement log in of-tree for kexec
> 
>   drivers/char/Makefile              |   1 +
>   drivers/char/tpm/Makefile          |   1 +
>   drivers/char/tpm/eventlog/of.c     |  31 +--
>   drivers/char/tpm/eventlog/tpm_of.c |  27 +++
>   drivers/of/kexec.c                 | 293 +++++++++++++++++++++++++----
>   include/linux/kexec.h              |   6 +
>   include/linux/of.h                 |   8 +-
>   include/linux/tpm.h                |   5 +
>   kernel/kexec_file.c                |   6 +
>   9 files changed, 315 insertions(+), 63 deletions(-)
>   create mode 100644 drivers/char/tpm/eventlog/tpm_of.c
>