commit | d4816edfe706497a8525480c1685ceb9871bc118 | [log] [tgz] |
---|---|---|
author | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | Tue Aug 16 22:00:38 2016 +0300 |
committer | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | Thu Sep 15 16:04:21 2016 +0300 |
tree | 73c4afa873f131ab70998332b9f4ece9e6f83d24 | |
parent | b7d7b28471072fc23e7b573aef89c14438092223 [diff] |
tpm: fix a race condition in tpm2_unseal_trusted() Unseal and load operations should be done as an atomic operation. This commit introduces unlocked tpm_transmit() so that tpm2_unseal_trusted() can do the locking by itself. Fixes: 0fe5480303a1 ("keys, trusted: seal/unseal with TPM 2.0 chips") Cc: stable@vger.kernel.org Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>