Re: [PATCH] mm: provide a fallback for PAGE_KERNEL_RO for architectures

From: Luis R. Rodriguez
Date: Wed May 09 2018 - 21:15:28 EST


On Tue, May 08, 2018 at 06:39:35PM -0700, Matthew Wilcox wrote:
> On Wed, May 09, 2018 at 01:04:38AM +0000, Luis R. Rodriguez wrote:
> > On Fri, Apr 27, 2018 at 08:18:10PM -0700, Matthew Wilcox wrote:
> > > ia64: Add PAGE_KERNEL_RO and PAGE_KERNEL_EXEC
> > >
> > > The rest of the kernel was falling back to simple PAGE_KERNEL pages; using
> > > PAGE_KERNEL_RO and PAGE_KERNEL_EXEC provide better protection against
> > > unintended writes.
> > >
> > > Signed-off-by: Matthew Wilcox <mawilcox@xxxxxxxxxxxxx>
> >
> > Nice, should I queue this into my series as well?
>
> A little reluctant to queue it without anyone having tested it. Heck,
> I didn't even check it compiled ;-)
>
> We used to just break architectures and let them fix it up for this kind
> of thing.

History is wonderful.

> That's not really acceptable nowadays, but I don't know how
> we get arch maintainers to fix up their ports now.

OK then in that case I'll proceed with my patches for now and just
document they don't have it. Once and folks test the patch we can
consider it.

Luis