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

Skip to content
Commit 7537805e authored by Neil Leeder's avatar Neil Leeder Committed by Stephen Boyd
Browse files

arm: mm: add functions to temporarily allow write to kernel text



STRICT_MEMORY_RWX write-protects the kernel text section. This
is a problem for tools such as kprobes which need write access
to kernel text space.

This patch introduces a function to temporarily make part of the
kernel text space writeable and another to restore the original state.
They can be called by code which is intentionally writing to
this space, while still leaving the kernel protected from
unintentional writes at other times.

Change-Id: I879009c41771198852952e5e7c3b4d1368f12d5f
Signed-off-by: default avatarNeil Leeder <nleeder@codeaurora.org>
(cherry picked from commit f06ab97f06fe6e8b3141434695b235e673f5ae37)

Conflicts:

	arch/arm/mm/mmu.c
parent a3b8b469
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