From: Kees Cook Date: Thu, 3 Apr 2014 20:29:50 +0000 (-0700) Subject: ARM: mm: allow text and rodata sections to be read-only X-Git-Tag: omap-for-v3.20/drop-legacy-3517~102^2^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80d6b0c2eed2a504f6740cd1f5ea76dc50abfc4d;p=pandora-kernel.git ARM: mm: allow text and rodata sections to be read-only This introduces CONFIG_DEBUG_RODATA, making kernel text and rodata read-only. Additionally, this splits rodata from text so that rodata can also be NX, which may lead to wasted memory when aligning to SECTION_SIZE. The read-only areas are made writable during ftrace updates and kexec. Signed-off-by: Kees Cook Tested-by: Laura Abbott Acked-by: Nicolas Pitre --- Reading git-diff-tree failed