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

Jarkko Sakkinen
2020-06-25T22:26:59Z

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@intel.com>
> >
> > 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@kvack.org
> > Andrew Morton <akpm@linux-foundation.org>
>
> 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