Re: [PATCH v22 03/24] x86/mm: x86/sgx: Signal SIGSEGV with PF_SGX

From: Jarkko Sakkinen
Date: Wed Sep 25 2019 - 10:16:23 EST


On Tue, Sep 24, 2019 at 06:04:42PM +0200, Borislav Petkov wrote:
> > + /*
> > + * Access is blocked by the Enclave Page Cache Map (EPCM), i.e. the
> > + * access is allowed by the PTE but not the EPCM. This usually happens
> > + * when the EPCM is yanked out from under us, e.g. by hardware after a
> > + * suspend/resume cycle. In any case, software, i.e. the kernel, can't
> > + * fix the source of the fault as the EPCM can't be directly modified
> > + * by software. Handle the fault as an access error in order to signal
> > + * userspace, e.g. so that userspace can rebuild their enclave(s), even
>
> s/, e.g.//

Thanks I fixed this in my tree. Also, quite many sentences seem that have
two spacebars after the end of sentence. I fixed those too.

/Jarkko