Re: [WARNING] x86/mm: Found insecure W+X mapping at address ..

From: Thomas Gleixner
Date: Tue May 23 2017 - 12:35:30 EST


On Tue, 23 May 2017, Kees Cook wrote:
> On Tue, May 23, 2017 at 8:40 AM, Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
> > As of 4.12-rc1 one of my machines triggers the insecure W+X mapping.
>
> > It's consistenly 9 entries close to the beginning of the module space,
> > before the first actual module starts. See below.
> >
> > Any ideas which avoid bisecting would be appreciated.
>
> Is this the same as:
>
> https://lkml.org/lkml/2017/5/19/899
>
> ?
>
> The location is very similar.

CONFIG_KPROBES_SANITY_TEST=n does not make it go away, but I suspect it's
something in that area, as I recently switched on all of these self tests.

I'll dig into it later today. Need to walk the dogs first.

Thanks,

tglx