Re: [PATCH 2/4] x86/sgx: Preserved allowed attributes during SGX_IOC_ENCLAVE_CREATE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 26, 2019 at 05:11:26PM -0700, Sean Christopherson wrote:
> Preserve any existing attributes set via ENCLAVE_SET_ATTRIBUTE when
> setting the always allowed attributes during ENCLAVE_CREATE.  There is
> no requirement that ENCLAVE_SET_ATTRIBUTE can only be called after the
> enclave is created.
> 
> Note, this does not fix a race condition between ENCLAVE_CREATE and
> ENCLAVE_SET_ATTRIBUTE, as the latter doesn't take encl->lock.  This will
> be addressed in a future patch.
> 
> Signed-off-by: Sean Christopherson <sean.j.christopherson@xxxxxxxxx>

Acked-by: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx>

Thanks!

/Jarkko



[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux