]> git.karo-electronics.de Git - karo-tx-linux.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>
Sat, 7 Dec 2013 23:20:55 +0000 (23:20 +0000)
commit596f31f4d62f1e2d3877f137c48857a05d5f5edf
tree60bcd0248535feb42fe25bcf10bf3331295418a0
parent77a4bbd6b158a7d21d0363fbe9d94e0a652d829b
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