devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/6] tpm: Preserve TPM measurement log across kexec (ppc64)
@ 2022-07-06 15:23 Stefan Berger
  2022-07-06 15:23 ` [PATCH v5 1/6] of: check previous kernel's ima-kexec-buffer against memory bounds Stefan Berger
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Stefan Berger @ 2022-07-06 15:23 UTC (permalink / raw)
  To: kexec, devicetree, linux-integrity, linux-kernel, linuxppc-dev
  Cc: nayna, nasastry, mpe, Stefan Berger

The of-tree subsystem does not currently preserve the IBM vTPM 1.2 and
vTPM 2.0 measurement logs across a kexec on PowerVM and PowerKVM. This
series fixes this for the kexec_file_load() syscall using the flattened
device tree (fdt) to carry the TPM measurement log's buffer across kexec.

   Stefan

v5:
 - Rebased on 1 more patch that would otherwise create merge conflicts

v4:
 - Rebased on 2 patches that would otherwise create merge conflicts;
   posting these patches in this series with several tags removed so
   krobot can test the series already
 - Changes to individual patches documented in patch descripitons

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

v2:
 - rearranged patches
 - fixed compilation issues for x86

Jonathan McDowell (1):
  x86/kexec: Carry forward IMA measurement log on kexec

Palmer Dabbelt (1):
  drivers: of: kexec ima: Support 32-bit platforms

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

Vaibhav Jain (1):
  of: check previous kernel's ima-kexec-buffer against memory bounds

 arch/x86/Kconfig                      |   1 +
 arch/x86/include/uapi/asm/bootparam.h |   9 +
 arch/x86/kernel/e820.c                |   6 +-
 arch/x86/kernel/kexec-bzimage64.c     |  42 +++-
 arch/x86/kernel/setup.c               |  63 +++++
 drivers/char/tpm/eventlog/of.c        |  31 +--
 drivers/of/kexec.c                    | 341 ++++++++++++++++++++++----
 include/linux/ima.h                   |   5 +
 include/linux/kexec.h                 |   6 +
 include/linux/of.h                    |  10 +-
 include/linux/tpm.h                   |  27 ++
 kernel/kexec_file.c                   |   6 +
 security/integrity/ima/ima_kexec.c    |   2 +-
 13 files changed, 467 insertions(+), 82 deletions(-)


base-commit: 03c765b0e3b4cb5063276b086c76f7a612856a9a
-- 
2.35.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-07-28  7:40 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-06 15:23 [PATCH v5 0/6] tpm: Preserve TPM measurement log across kexec (ppc64) Stefan Berger
2022-07-06 15:23 ` [PATCH v5 1/6] of: check previous kernel's ima-kexec-buffer against memory bounds Stefan Berger
2022-07-06 15:23 ` [PATCH v5 2/6] drivers: of: kexec ima: Support 32-bit platforms Stefan Berger
2022-07-06 15:23 ` [PATCH v5 3/6] x86/kexec: Carry forward IMA measurement log on kexec Stefan Berger
2022-07-06 15:23 ` [PATCH v5 4/6] tpm: of: Make of-tree specific function commonly available Stefan Berger
2022-07-11  3:04   ` Jarkko Sakkinen
2022-07-15 16:01     ` Stefan Berger
2022-07-28  7:40       ` Jarkko Sakkinen
2022-07-06 15:23 ` [PATCH v5 5/6] of: kexec: Refactor IMA buffer related functions to make them reusable Stefan Berger
2022-07-07 14:47   ` Jonathan McDowell
2022-07-07 16:10     ` Stefan Berger
2022-07-06 15:23 ` [PATCH v5 6/6] tpm/kexec: Duplicate TPM measurement log in of-tree for kexec Stefan Berger
2022-07-07  4:25   ` kernel test robot

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).