aboutsummaryrefslogtreecommitdiff
path: root/crypto/asymmetric_keys/verify_pefile.h
diff options
context:
space:
mode:
authorGravatar Mårten Lindahl <marten.lindahl@axis.com> 2022-08-01 15:57:03 +0200
committerGravatar Jarkko Sakkinen <jarkko@kernel.org> 2022-08-03 23:56:20 +0300
commit863ed94c589fcd1984f4e3080f069d30508044bb (patch)
tree121a6e3ad83c86f6287ee3b50494c6845ece74b0 /crypto/asymmetric_keys/verify_pefile.h
parenttpm: eventlog: Fix section mismatch for DEBUG_SECTION_MISMATCH (diff)
downloadlinux-863ed94c589fcd1984f4e3080f069d30508044bb.tar.gz
linux-863ed94c589fcd1984f4e3080f069d30508044bb.tar.bz2
linux-863ed94c589fcd1984f4e3080f069d30508044bb.zip
tpm: Add check for Failure mode for TPM2 modules
In commit 0aa698787aa2 ("tpm: Add Upgrade/Reduced mode support for TPM2 modules") it was said that: "If the TPM is in Failure mode, it will successfully respond to both tpm2_do_selftest() and tpm2_startup() calls. Although, will fail to answer to tpm2_get_cc_attrs_tbl(). Use this fact to conclude that TPM is in Failure mode." But a check was never added in the commit when calling tpm2_get_cc_attrs_tbl() to conclude that the TPM is in Failure mode. This commit corrects this by adding a check. Fixes: 0aa698787aa2 ("tpm: Add Upgrade/Reduced mode support for TPM2 modules") Cc: stable@vger.kernel.org # v5.17+ Signed-off-by: Mårten Lindahl <marten.lindahl@axis.com> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'crypto/asymmetric_keys/verify_pefile.h')
0 files changed, 0 insertions, 0 deletions