Re: [PATCHv2 4/4] arm64: dump: Add checking for writable and exectuable pages

2016-10-17 Thread Mark Rutland
On Wed, Oct 12, 2016 at 03:32:02PM -0700, Laura Abbott wrote: > +config DEBUG_WX > + bool "Warn on W+X mappings at boot" > + select ARM64_PTDUMP_CORE > + ---help--- > + Generate a warning if any W+X mappings are found at boot. > + > + This is useful for discovering cases whe

[PATCHv2 4/4] arm64: dump: Add checking for writable and exectuable pages

2016-10-12 Thread Laura Abbott
Page mappings with full RWX permissions are a security risk. x86 has an option to walk the page tables and dump any bad pages. (See e1a58320a38d ("x86/mm: Warn on W^X mappings")). Add a similar implementation for arm64. Signed-off-by: Laura Abbott --- v2: Check only init_mm, style cleanups, UXN