Re: [PATCH v6] tpm: fix a race condition in tpm2_unseal_trusted()

2016-08-30 Thread Jarkko Sakkinen
On Tue, Aug 30, 2016 at 12:07:01PM -0600, Jason Gunthorpe wrote: > On Tue, Aug 30, 2016 at 01:51:06AM +0300, Jarkko Sakkinen wrote: > > 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 l

Re: [PATCH v6] tpm: fix a race condition in tpm2_unseal_trusted()

2016-08-30 Thread Jason Gunthorpe
On Tue, Aug 30, 2016 at 01:51:06AM +0300, Jarkko Sakkinen wrote: > 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. > > v2: Introduced an unlocked unseal operation instea

Re: [PATCH v6] tpm: fix a race condition in tpm2_unseal_trusted()

2016-08-30 Thread Jarkko Sakkinen
On Tue, Aug 30, 2016 at 01:51:06AM +0300, Jarkko Sakkinen wrote: > 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. > > v2: Introduced an unlocked unseal operation instea

[PATCH v6] tpm: fix a race condition in tpm2_unseal_trusted()

2016-08-29 Thread Jarkko Sakkinen
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. v2: Introduced an unlocked unseal operation instead of changing locking strategy in order to make less intrusive bug fix