Re: [PATCH v33 10/21] mm: Introduce vm_ops->may_mprotect()

From: Jarkko Sakkinen
Date: Thu Jun 25 2020 - 18:27:03 EST


On Thu, Jun 25, 2020 at 07:14:16PM +0200, Borislav Petkov wrote:
> On Thu, Jun 18, 2020 at 01:08:32AM +0300, Jarkko Sakkinen wrote:
> > From: Sean Christopherson <sean.j.christopherson@xxxxxxxxx>
> >
> > Add vm_ops()->may_mprotect() to check additional constraints.
> >
> > SGX uses this callback to add two constraints:
> >
> > 1. Verify that the address range does not have holes: for each page
> > address, there is an actual enclave page created.
> > 2. Mapped permissions do not surpass the lowest enclave page permissions
> > in the address range.
> >
> > linux-mm@xxxxxxxxx
> > Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
>
> Something ate the Cc:s. Lemme add the mm list, akpm is already on Cc.
>
> Leaving in the rest for mm folks.

Thank you. So it seems. I've fixed them now.

/Jarkko