android_kernel_motorola_sm6225/drivers/char/tpm
Vadim Sukhomlinov 053d0ec61e 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: d1bd4a792d ("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>
2019-10-07 18:56:28 +02:00
..
eventlog tpm: Fix the type of the return value in calc_tpm2_event_size() 2019-04-27 09:36:40 +02:00
st33zp24 tpm: Fix some name collisions with drivers/char/tpm.h 2019-09-16 08:22:05 +02:00
Kconfig tpm: Move Linux RNG connection to hwrng 2018-01-08 12:58:36 +02:00
Makefile tpm: Move shared eventlog functions to common.c 2018-05-09 14:45:46 +03:00
tpm-chip.c tpm: Fix TPM 1.2 Shutdown sequence to prevent future TPM operations 2019-10-07 18:56:28 +02:00
tpm-dev-common.c tpm: fix race condition in tpm_common_write() 2018-05-30 20:11:31 +03:00
tpm-dev.c tpm: split out tpm-dev.c into tpm-dev.c and tpm-common-dev.c 2017-04-03 22:46:01 +03:00
tpm-dev.h tpm: fix race condition in tpm_common_write() 2018-05-30 20:11:31 +03:00
tpm-interface.c tpm: Unify the send callback behaviour 2019-03-23 20:10:11 +01:00
tpm-sysfs.c tpm: use tpm_try_get_ops() in tpm-sysfs.c. 2019-10-07 18:56:27 +02:00
tpm.h tpm: replace TPM_TRANSMIT_RAW with TPM_TRANSMIT_NESTED 2018-07-28 17:03:11 +03:00
tpm2-cmd.c tpm: fix response size validation in tpm_get_random() 2018-11-13 11:08:48 -08:00
tpm2-space.c tpm: replace TPM_TRANSMIT_RAW with TPM_TRANSMIT_NESTED 2018-07-28 17:03:11 +03:00
tpm_atmel.c tpm: Unify the send callback behaviour 2019-03-23 20:10:11 +01:00
tpm_atmel.h tpm: remove tpm_read_index and tpm_write_index from tpm.h 2017-02-03 22:03:14 +02:00
tpm_crb.c tpm/tpm_crb: Avoid unaligned reads in crb_recv() 2019-03-23 20:10:11 +01:00
tpm_i2c_atmel.c tpm/tpm_i2c_atmel: Return -E2BIG when the transfer is incomplete 2019-04-27 09:36:40 +02:00
tpm_i2c_infineon.c tpm: Fix some name collisions with drivers/char/tpm.h 2019-09-16 08:22:05 +02:00
tpm_i2c_nuvoton.c tpm: Fix some name collisions with drivers/char/tpm.h 2019-09-16 08:22:05 +02:00
tpm_ibmvtpm.c tpm: Unify the send callback behaviour 2019-03-23 20:10:11 +01:00
tpm_ibmvtpm.h tpm_ibmvtpm: properly handle interrupted packet receptions 2015-12-20 15:27:12 +02:00
tpm_infineon.c tpm: Unify the send callback behaviour 2019-03-23 20:10:11 +01:00
tpm_nsc.c tpm: Unify the send callback behaviour 2019-03-23 20:10:11 +01:00
tpm_ppi.c ACPI: Switch to use generic guid_t in acpi_evaluate_dsm() 2017-06-07 12:20:49 +02:00
tpm_tis.c tpm: remove unused variables 2018-01-08 12:58:54 +02:00
tpm_tis_core.c tpm: Unify the send callback behaviour 2019-03-23 20:10:11 +01:00
tpm_tis_core.h tpm: Allow tpm_tis drivers to set hwrng quality. 2018-07-28 17:03:11 +03:00
tpm_tis_spi.c tpm_tis_spi: Pass the SPI IRQ down to the driver 2018-07-28 17:03:11 +03:00
tpm_vtpm_proxy.c tpm: Unify the send callback behaviour 2019-03-23 20:10:11 +01:00
tpmrm-dev.c tpm, tpmrm: Mark tpmrm_write as static 2017-06-13 22:02:08 +03:00
xen-tpmfront.c tpm: Unify the send callback behaviour 2019-03-23 20:10:11 +01:00