Commit e6a2e1b6 authored by Daniel Borkmann's avatar Daniel Borkmann Committed by Will Deacon
Browse files

arm64: mm: unexport set_memory_ro and set_memory_rw

This effectively unexports set_memory_ro and set_memory_rw functions from
commit 11d91a77

 ("arm64: Add CONFIG_DEBUG_SET_MODULE_RONX support").

No module user of those is in mainline kernel and we explicitly do not want
modules to use these functions, as they i.e. RO-protect eBPF (interpreted and
JIT'ed) images from malicious modifications/bugs.

Outside of eBPF scope, I believe also other set_memory_* functions should
be unexported on arm64 due to non-existant mainline module user. Laura
mentioned that they have some uses for modules doing set_memory_*, but
none that are in mainline and it's unclear if they would ever get there.
Signed-off-by: default avatarDaniel Borkmann <>
Acked-by: default avatarAlexei Starovoitov <>
Acked-by: default avatarLaura Abbott <>
Signed-off-by: default avatarWill Deacon <>
parent a8fcd8b1
......@@ -73,7 +73,6 @@ int set_memory_ro(unsigned long addr, int numpages)
int set_memory_rw(unsigned long addr, int numpages)
......@@ -81,7 +80,6 @@ int set_memory_rw(unsigned long addr, int numpages)
int set_memory_nx(unsigned long addr, int numpages)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment