Skip to content
Commit 453d87f6 authored by Russell Currey's avatar Russell Currey Committed by Michael Ellerman
Browse files

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: default avatarRussell Currey <ruscur@russell.cc>
[mpe: Fixup build error when disabled]
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 5f18cbdb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment