]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: implement basic NX support for kernel lowmem mappings
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 24 Oct 2013 07:12:39 +0000 (08:12 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 11 Dec 2013 09:53:16 +0000 (09:53 +0000)
commit4102af46b4ab2a0c853e9106557c75b69f160345
tree9bdeb148dca0324f7c16bf33feee00fe013dcd0f
parent2c7b35c78912d1007277fbf8aa3fd3c5bd25d67a
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: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/mach/map.h
arch/arm/mm/mmu.c