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. Change-Id: If1f8a6bb33539ba7161802e4f4760ada9521dce4 Signed-off-by:Kees Cook <keescook@chromium.org> Tested-by:
Laura Abbott <lauraa@codeaurora.org> Acked-by:
Nicolas Pitre <nico@linaro.org> Git-commit: 80d6b0c2eed2a504f6740cd1f5ea76dc50abfc4d Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Signed-off-by:
Shiraz Hashim <shashim@codeaurora.org>
Loading
Please register or sign in to comment