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