linux/drivers/char/tpm/eventlog
Stefan Berger c9adb76c71 tpm: vtpm_proxy: Avoid reading host log when using a virtual device
commit 9716ac65ef upstream.

Avoid allocating memory and reading the host log when a virtual device
is used since this log is of no use to that driver. A virtual
device can be identified through the flag TPM_CHIP_FLAG_VIRTUAL, which
is only set for the tpm_vtpm_proxy driver.

Cc: stable@vger.kernel.org
Fixes: 6f99612e25 ("tpm: Proxy driver for supporting multiple emulated TPMs")
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-11 14:47:35 +02:00
..
acpi.c tpm: acpi: Check eventlog signature before using it 2021-05-11 14:47:12 +02:00
common.c tpm: vtpm_proxy: Avoid reading host log when using a virtual device 2021-05-11 14:47:35 +02:00
common.h
efi.c tpm: efi: Use local variable for calculating final log size 2021-05-11 14:47:35 +02:00
of.c tpm: of: Handle IBM,vtpm20 case when getting log parameters 2020-03-13 17:31:26 +02:00
tpm1.c tpm: tpm1_bios_measurements_next should increase position index 2020-03-13 03:53:16 +02:00
tpm2.c tpm: eventlog: Replace zero-length array with flexible-array member 2020-05-22 18:50:12 +03:00