Skip to content
Commit ebd4922e authored by Russell King's avatar Russell King
Browse files

ARM: implement basic NX support for kernel lowmem mappings



Add basic NX support for kernel lowmem mappings.  We mark any section
which does not overlap kernel text as non-executable, preventing it
from being used to write code and then execute directly from there.

This does not change the alignment of the sections, so the kernel
image doesn't grow significantly via this change, so we can do this
without needing a config option.

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 2e2c9de2
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