Re: [PATCH v30 09/20] mm: Introduce vm_ops->may_mprotect()

From: Jarkko Sakkinen
Date: Fri May 29 2020 - 14:18:16 EST


On Fri, May 29, 2020 at 02:10:38PM +0200, Borislav Petkov wrote:
> On Fri, May 15, 2020 at 03:43:59AM +0300, Jarkko Sakkinen wrote:
> > From: Sean Christopherson <sean.j.christopherson@xxxxxxxxx>
> >
> > Add vm_ops()->may_mprotect() to check additional constrains set by a
>
> "constraints"
>
> > subsystem for a mprotect() call.
> >
> > Signed-off-by: Sean Christopherson <sean.j.christopherson@xxxxxxxxx>
> > Acked-by: Jethro Beekman <jethro@xxxxxxxxxxxx>
> > Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx>
> > ---
> > include/linux/mm.h | 2 ++
> > mm/mprotect.c | 14 +++++++++++---
> > 2 files changed, 13 insertions(+), 3 deletions(-)
>
> This needs an ACK from an mm person.

Good point. I'll add the needed cc's.

/Jarkko