diff options
author | Jarkko Sakkinen <jarkko@kernel.org> | 2021-06-09 16:26:19 +0300 |
---|---|---|
committer | Jarkko Sakkinen <jarkko@kernel.org> | 2021-06-23 16:51:04 +0300 |
commit | 0178f9d0f60ba07e09bab57381a3ef18e2c1fd7f (patch) | |
tree | 0ecacbae8564628dec57310243f7da34466770a9 /crypto/gcm.c | |
parent | 5a118a39ec9207f9b8cddb013ad270c80bc84a1c (diff) |
tpm: Replace WARN_ONCE() with dev_err_once() in tpm_tis_status()
Do not tear down the system when getting invalid status from a TPM chip.
This can happen when panic-on-warn is used.
Instead, introduce TPM_TIS_INVALID_STATUS bitflag and use it to trigger
once the error reporting per chip. In addition, print out the value of
TPM_STS for improved forensics.
Link: https://lore.kernel.org/keyrings/YKzlTR1AzUigShtZ@kroah.com/
Fixes: 55707d531af6 ("tpm_tis: Add a check for invalid status")
Cc: stable@vger.kernel.org
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/gcm.c')
0 files changed, 0 insertions, 0 deletions