linux/drivers/char/tpm
Kent Yoder dd7da132f7 tpm: fix double write race and tpm_release free issue
Moved the atomic_set of the data_pending variable until after the
tpm_read has completed processing. The existing code had a window of
time where a second write to the driver could clobber the tpm command
buffer.

Also fixed an issue where if close was called on the tpm device before a
read completed, the tpm command buffer would be returned to the OS,
which could contain sensitive information.

Signed-off-by: Kent Yoder <key@linux.vnet.ibm.com>
2012-08-22 11:11:49 -05:00
..
Kconfig char/tpm: Add new driver for Infineon I2C TIS TPM 2012-08-22 11:11:13 -05:00
Makefile tpm: modularize event log collection 2012-08-22 11:11:25 -05:00
tpm_acpi.c tpm: modularize event log collection 2012-08-22 11:11:25 -05:00
tpm_atmel.c tpm_atmel: Use struct dev_pm_ops for power management 2012-07-10 21:37:02 +02:00
tpm_atmel.h tpmdd maintainers 2007-08-22 19:52:44 -07:00
tpm_eventlog.c tpm: modularize event log collection 2012-08-22 11:11:25 -05:00
tpm_eventlog.h tpm: modularize event log collection 2012-08-22 11:11:25 -05:00
tpm_i2c_infineon.c char/tpm: Add new driver for Infineon I2C TIS TPM 2012-08-22 11:11:13 -05:00
tpm_infineon.c MAINTAINERS: TPM maintainers' contacts update 2012-06-12 18:53:22 -03:00
tpm_nsc.c tpm_nsc: Use struct dev_pm_ops for power management 2012-07-10 21:37:18 +02:00
tpm_tis.c tpm_tis / PM: Fix unused function warning for CONFIG_PM_SLEEP 2012-08-10 14:29:50 +02:00
tpm.c tpm: fix double write race and tpm_release free issue 2012-08-22 11:11:49 -05:00
tpm.h tpm: Move tpm_get_random api into the TPM device driver 2012-08-22 11:11:33 -05:00