diff options
author | Jarkko Sakkinen <jarkko@kernel.org> | 2021-06-09 16:26:19 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-14 17:56:53 +0300 |
commit | 97cbddc8a2bc62fe27fd3ca7be52abf3c675a4a6 (patch) | |
tree | 4bdd6e066377476a0f5b0892a3131df6469805b7 /include/kvm | |
parent | b5a2b5b64237b9d1bdb002ff96b5f3b8e142b2b2 (diff) | |
download | linux-97cbddc8a2bc62fe27fd3ca7be52abf3c675a4a6.tar.xz |
tpm: Replace WARN_ONCE() with dev_err_once() in tpm_tis_status()
commit 0178f9d0f60ba07e09bab57381a3ef18e2c1fd7f upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/kvm')
0 files changed, 0 insertions, 0 deletions