]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: mm: unexport set_memory_ro and set_memory_rw
authorDaniel Borkmann <daniel@iogearbox.net>
Sun, 1 Mar 2015 10:14:39 +0000 (10:14 +0000)
committerWill Deacon <will.deacon@arm.com>
Thu, 19 Mar 2015 10:43:56 +0000 (10:43 +0000)
commit4243231b8500890d73622003ba857f1c51be75d9
treee966e4a334395baec1fa3b9e98c4a5f8e6925803
parentabc123dd7915bcc77698afe8090e33df82de0f75
arm64: mm: unexport set_memory_ro and set_memory_rw

This effectively unexports set_memory_ro and set_memory_rw functions from
commit 38a5b6e6d200 ("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: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Acked-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/mm/pageattr.c