From: Kees Cook Date: Fri, 4 Apr 2014 00:28:11 +0000 (-0700) Subject: ARM: mm: allow non-text sections to be non-executable X-Git-Tag: omap-for-v3.20/drop-legacy-3517~102^2^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e6b48116a95046ec51f3d40f83aff8b006674d7;p=pandora-kernel.git ARM: mm: allow non-text sections to be non-executable Adds CONFIG_ARM_KERNMEM_PERMS to separate the kernel memory regions into section-sized areas that can have different permisions. Performs the NX permission changes during free_initmem, so that init memory can be reclaimed. This uses section size instead of PMD size to reduce memory lost to padding on non-LPAE systems. Based on work by Brad Spengler, Larry Bassel, and Laura Abbott. Signed-off-by: Kees Cook Tested-by: Laura Abbott Acked-by: Nicolas Pitre --- Reading git-diff-tree failed