public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v3 0/6] tpm: Support boot measurements
@ 2023-01-12 16:16 Eddie James
  2023-01-12 16:16 ` [PATCH v3 1/6] tpm: Fix spelling for tpmu_ha union Eddie James
                   ` (5 more replies)
  0 siblings, 6 replies; 18+ messages in thread
From: Eddie James @ 2023-01-12 16:16 UTC (permalink / raw)
  To: u-boot; +Cc: ilias.apalodimas, sjg, xypron.glpk, eajames

This series adds support for measuring the boot images more generically
than the existing EFI support. Several EFI functions have been moved to
the TPM layer. The series includes optional measurement from the bootm 
command.
A new test case has been added for the bootm measurement to test the new
path, and the sandbox TPM2 driver has been updated to support this use
case.

Changes since v2:
 - Add documentation.
 - Changed reserved memory address to the top of the RAM for sandbox dts.
 - Add measure state to booti and bootz.
 - Skip measurement for EFI images that should be measured

Changes since v1:
 - Refactor TPM layer functions to allow EFI system to use them, and
   remove duplicate EFI functions.
 - Add test case
 - Drop #ifdefs for bootm
 - Add devicetree measurement config option
 - Update sandbox TPM driver

Eddie James (6):
  tpm: Fix spelling for tpmu_ha union
  tpm: Support boot measurements
  bootm: Support boot measurement
  tpm: sandbox: Update for needed TPM2 capabilities
  test: Add sandbox TPM boot measurement
  doc: Add measured boot documentation

 arch/sandbox/dts/sandbox.dtsi  |  14 +
 arch/sandbox/dts/test.dts      |  13 +
 boot/Kconfig                   |  23 ++
 boot/bootm.c                   |  70 ++++
 cmd/booti.c                    |   1 +
 cmd/bootm.c                    |   2 +
 cmd/bootz.c                    |   1 +
 configs/sandbox_defconfig      |   1 +
 doc/usage/index.rst            |   1 +
 doc/usage/measured_boot.rst    |  23 ++
 drivers/tpm/tpm2_tis_sandbox.c | 100 +++--
 include/bootm.h                |   2 +
 include/efi_tcg2.h             |  44 --
 include/image.h                |   1 +
 include/test/suites.h          |   1 +
 include/tpm-v2.h               | 215 +++++++++-
 lib/efi_loader/efi_tcg2.c      | 362 +----------------
 lib/tpm-v2.c                   | 708 +++++++++++++++++++++++++++++++++
 test/boot/Makefile             |   1 +
 test/boot/measurement.c        |  66 +++
 test/cmd_ut.c                  |   2 +
 21 files changed, 1234 insertions(+), 417 deletions(-)
 create mode 100644 doc/usage/measured_boot.rst
 create mode 100644 test/boot/measurement.c

-- 
2.31.1


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

end of thread, other threads:[~2023-01-24 13:20 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-12 16:16 [PATCH v3 0/6] tpm: Support boot measurements Eddie James
2023-01-12 16:16 ` [PATCH v3 1/6] tpm: Fix spelling for tpmu_ha union Eddie James
2023-01-12 16:16 ` [PATCH v3 2/6] tpm: Support boot measurements Eddie James
2023-01-12 23:43   ` Simon Glass
2023-01-13  7:07     ` Ilias Apalodimas
2023-01-13  9:27       ` Heinrich Schuchardt
2023-01-13 14:46     ` Eddie James
2023-01-13 18:00       ` Simon Glass
2023-01-16 10:51         ` Ilias Apalodimas
2023-01-23 22:25           ` Simon Glass
2023-01-16 12:00   ` Ilias Apalodimas
2023-01-23 20:15     ` Eddie James
2023-01-24 13:20       ` Ilias Apalodimas
2023-01-12 16:16 ` [PATCH v3 3/6] bootm: Support boot measurement Eddie James
2023-01-12 23:43   ` Simon Glass
2023-01-12 16:16 ` [PATCH v3 4/6] tpm: sandbox: Update for needed TPM2 capabilities Eddie James
2023-01-12 16:16 ` [PATCH v3 5/6] test: Add sandbox TPM boot measurement Eddie James
2023-01-12 16:16 ` [PATCH v3 6/6] doc: Add measured boot documentation Eddie James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox