Re: [PATCH] x86/mm: Remove set_pages_x() and set_pages_nx()

From: Christoph Hellwig
Date: Wed Sep 18 2019 - 13:53:11 EST


On Wed, Sep 18, 2019 at 12:49:56PM -0500, Larry Finger wrote:
> Is there approved way for pages to be set to be executable by an external
> module that would not be a security issue?

There is approved way for modules to set kernel code executable,
because well they shouldn't. And as stated many times we do not
add interfaces for things not in mainline to start with. So as a first
step please submit your module for inclusion and then we can discuss
if it actually happens to be a valid use case or not, and how to best
accomodate it.