]> git.ipfire.org Git - people/arne_f/kernel.git/commit
tpm: Fix TPM 1.2 Shutdown sequence to prevent future TPM operations
authorVadim Sukhomlinov <sukhomlinov@google.com>
Thu, 3 Oct 2019 18:46:23 +0000 (21:46 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Oct 2019 16:54:56 +0000 (18:54 +0200)
commit19741180b945f776c5fe6cbb8302d4ea870b1947
tree147591fcd0fa9d2bf4b3de4be72f43ebb3d41cd7
parenta5a497ec1a8f44f09d517215fef71dfdfce4034c
tpm: Fix TPM 1.2 Shutdown sequence to prevent future TPM operations

commit db4d8cb9c9f2af71c4d087817160d866ed572cc9 upstream

TPM 2.0 Shutdown involve sending TPM2_Shutdown to TPM chip and disabling
future TPM operations. TPM 1.2 behavior was different, future TPM
operations weren't disabled, causing rare issues. This patch ensures
that future TPM operations are disabled.

Fixes: d1bd4a792d39 ("tpm: Issue a TPM2_Shutdown for TPM2 devices.")
Cc: stable@vger.kernel.org
Signed-off-by: Vadim Sukhomlinov <sukhomlinov@google.com>
[dianders: resolved merge conflicts with mainline]
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/char/tpm/tpm-chip.c