linux_dsm_epyc7002/arch/powerpc/mm/ptdump
Russell Currey 453d87f6a8 powerpc/mm: Warn if W+X pages found on boot
Implement code to walk all pages and warn if any are found to be both
writable and executable.  Depends on STRICT_KERNEL_RWX enabled, and is
behind the DEBUG_WX config option.

This only runs on boot and has no runtime performance implications.

Very heavily influenced (and in some cases copied verbatim) from the
ARM64 code written by Laura Abbott (thanks!), since our ptdump
infrastructure is similar.

Signed-off-by: Russell Currey <ruscur@russell.cc>
[mpe: Fixup build error when disabled]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2019-05-03 02:54:45 +10:00
..
8xx.c powerpc: Move page table dump files in a dedicated subdirectory 2019-02-22 22:29:22 +11:00
bats.c powerpc: Move page table dump files in a dedicated subdirectory 2019-02-22 22:29:22 +11:00
book3s64.c powerpc: Move page table dump files in a dedicated subdirectory 2019-02-22 22:29:22 +11:00
hashpagetable.c powerpc/mm/hash64: Map all the kernel regions in the same 0xc range 2019-04-21 23:12:39 +10:00
Makefile powerpc: Move page table dump files in a dedicated subdirectory 2019-02-22 22:29:22 +11:00
ptdump.c powerpc/mm: Warn if W+X pages found on boot 2019-05-03 02:54:45 +10:00
ptdump.h powerpc: Move page table dump files in a dedicated subdirectory 2019-02-22 22:29:22 +11:00
segment_regs.c powerpc: Move page table dump files in a dedicated subdirectory 2019-02-22 22:29:22 +11:00
shared.c powerpc: Move page table dump files in a dedicated subdirectory 2019-02-22 22:29:22 +11:00