Re: [PATCH for_v22 01/11] x86/sgx: Fix an SECS collision with enclave page at VA=0

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

 



On Fri, Aug 09, 2019 at 11:44:56PM +0300, Jarkko Sakkinen wrote:
> On Wed, Aug 07, 2019 at 05:12:44PM -0700, Sean Christopherson wrote:
> > Detect the SECS in paging related flows by explicitly checking the page
> > against the enclave's SECS page.  Assuming a page with VA=0 is the SECS
> > will break enclaves that actually use VA=0, which is extremely unlikely
> > but theoretically possible.
> > 
> > Signed-off-by: Sean Christopherson <sean.j.christopherson@xxxxxxxxx>
> 
> I applied this with the tweaks mentioned in the discussion:
> 
> * SGX_ENCL_PAGE_IS_SECS() as a macro.
> * Removed @encl both sgx_get_index() and SGX_ENCL_PAGE_IS_SECS().
> 
> Not yet pushed. Just noting that I'm taking care of it.

Not it is also pushed.

/Jarkko



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

  Powered by Linux