Re: [PATCH v4 3/3,RESEND 2] KEYS: trusted: Reserve TPM for seal and unseal operations

2020-11-04 Thread Jarkko Sakkinen
On Wed, Nov 04, 2020 at 01:00:09PM +0530, Sumit Garg wrote: > Hi Jarkko, > > On Wed, 4 Nov 2020 at 06:49, Jarkko Sakkinen > wrote: > > > > When TPM 2.0 trusted keys code was moved to the trusted keys subsystem, > > the operations were unwrapped from tpm_try_get_ops() and tpm_put_ops(), > > which

Re: [PATCH v4 3/3,RESEND 2] KEYS: trusted: Reserve TPM for seal and unseal operations

2020-11-03 Thread Sumit Garg
Hi Jarkko, On Wed, 4 Nov 2020 at 06:49, Jarkko Sakkinen wrote: > > When TPM 2.0 trusted keys code was moved to the trusted keys subsystem, > the operations were unwrapped from tpm_try_get_ops() and tpm_put_ops(), > which are used to take temporarily the ownership of the TPM chip. The > ownership

[PATCH v4 3/3,RESEND 2] KEYS: trusted: Reserve TPM for seal and unseal operations

2020-11-03 Thread Jarkko Sakkinen
When TPM 2.0 trusted keys code was moved to the trusted keys subsystem, the operations were unwrapped from tpm_try_get_ops() and tpm_put_ops(), which are used to take temporarily the ownership of the TPM chip. The ownership is only taken inside tpm_send(), but this is not sufficient, as in the key