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
..
2012-08-07 13:17:33 +02:00
2012-05-16 08:06:37 -07:00
2012-05-16 08:06:37 -07:00
2012-03-28 18:30:03 +01:00
2011-03-31 11:26:23 -03:00
2011-02-02 15:28:19 +01:00
2012-03-28 18:30:03 +01:00
2011-03-31 11:26:23 -03:00
2012-03-28 18:30:03 +01:00
2011-01-10 08:51:44 -08:00
2010-10-15 15:53:27 +02:00
2012-02-09 23:09:37 +01:00