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

From: Borislav Petkov
Date: Fri May 29 2020 - 08:10:47 EST


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.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette