[Skiboot] [PATCH v2 0/3] Fix tpm_extendl() for multiple/no TPM scenarios

Claudio Carvalho cclaudio at linux.vnet.ibm.com
Wed Nov 2 09:40:24 AEDT 2016


This fixes libstb/tpm_chip.c:tpm_extendl() to cover two scenarios:
1) the system is booting in trusted mode and the system have multiple TPMs. The
patch 1/3 disables not only the first TPM that fails but rather all the TPM
that fail in order to keep the enabled TPMs consistent.
2) the system is booting in trusted mode but skiboot did not find either a tpm
device in the devtree or a compatible driver. The patch 3/3 just don't try to
measure a given data if there is no tpm_chip registered/enabled.

The patch 3/3, turn the logging (opal msg log) over to tpm_extendl().

Claudio Carvalho (3):
  tpm_extendl: disable all failed tpms rather than only the first
  tpm_extendl: log the calling results
  tpm_extendl: don't measure when no tpm is registered

 libstb/status_codes.h |  4 ++--
 libstb/stb.c          | 28 ++++++++++-------------
 libstb/tpm_chip.c     | 61 ++++++++++++++++++++++++++++++++++++---------------
 3 files changed, 57 insertions(+), 36 deletions(-)

-- 
1.9.1



More information about the Skiboot mailing list