Re: 4.4-rc5: ugly warn on: 5 W+X pages found

Arjan van de Ven
2015-12-14T21:24:39Z

> That's weird. The only API to do that seems to be manually setting
> kmap_prot to _PAGE_KERNEL_EXEC, and nothing does that. (Why is
> kmap_prot a variable on x86 at all? It has exactly one writer, and
> that's the code that initializes it in the first place. Shouldn't we
> #define kmap_prot _PAGE_KERNEL?

iirc it changes based on runtime detection of NX capability