Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 229aabdc authored by Kees Cook's avatar Kees Cook Committed by Kees Cook
Browse files

UPSTREAM: 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: default avatarKees Cook <keescook@chromium.org>
Tested-by: default avatarLaura Abbott <lauraa@codeaurora.org>
Acked-by: default avatarNicolas Pitre <nico@linaro.org>

(cherry picked from commit 80d6b0c2eed2a504f6740cd1f5ea76dc50abfc4d)
Signed-off-by: default avatarKees Cook <keescook@google.com>
Change-Id: I3ff491ba194e5750b6ee84716e4eeed3dbcf1d7d
parent e07db607
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment