mirror_qemu/hw/tpm
Marc-André Lureau 17b1af773e tpm-emulator: protect concurrent ctrl_chr access
The control chardev is being used from the data thread to set the
locality of the next request. Altough the chr has a write mutex, we
may potentially read the reply from another thread request.

Add a mutex to protect from concurrent control commands.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
2017-11-15 06:47:35 -05:00
..
Makefile.objs tpm: Added support for TPM emulator 2017-10-13 07:34:33 -04:00
tpm_emulator.c tpm-emulator: protect concurrent ctrl_chr access 2017-11-15 06:47:35 -05:00
tpm_int.h tpm: move recv_data_callback to TPM interface 2017-10-19 11:42:33 -04:00
tpm_ioctl.h tpm: Added support for TPM emulator 2017-10-13 07:34:33 -04:00
tpm_passthrough.c tpm: move recv_data_callback to TPM interface 2017-10-19 11:42:33 -04:00
tpm_tis.c tpm: print buffers received from TPM when debugging 2017-10-25 01:05:53 -04:00
tpm_util.c tpm-tis: move TPMState to TIS header 2017-10-19 11:42:30 -04:00
tpm_util.h tpm-passthrough: move reusable code to utils 2017-10-13 07:34:33 -04:00