Re: [PATCH] x86/mm: Refuse W^X violations

From: Peter Zijlstra
Date: Thu Aug 25 2022 - 15:42:28 EST


On Thu, Aug 25, 2022 at 11:16:12AM -0700, Kees Cook wrote:
> On Thu, Aug 25, 2022 at 02:23:31PM +0200, Peter Zijlstra wrote:
> > x86 has STRICT_*_RWX, but not even a warning when someone violates it.
>
> Yes please. I assume this is only kernel pages? Doing this globally is
> nice too, but runs into annoying problems[1].

Yeah, this interface should only be used on kernel pages.