Messages in this thread | | | Date | Wed, 8 Jul 2020 15:37:08 +0100 | From | Matthew Wilcox <> | Subject | Re: [PATCH v34 10/24] mm: Add vm_ops->mprotect() |
| |
On Wed, Jul 08, 2020 at 05:33:20PM +0300, Jarkko Sakkinen wrote: > I get the point but I don't think that your proposal could work given > that mprotect-callback takes neither 'prev' nor 'newflags' as its > parameters. The current callback has no means to call mprotect_fixup() > properly. > > It would have to be extended > > int (*mprotect)(struct vm_area_struct *vma, > struct vm_area_struct **pprev, unsigned long start, > unsigned long end, unsigned long prot, > unsigned long newflags); > > Is this what you want?
https://lore.kernel.org/linux-mm/20200625173050.GF7703@casper.infradead.org/
| |