62e3d4210a
Add the necessary call to bpf_jit_binary_lock_ro() to remove write and add exec permissions to the JIT image after it has finished being written. Without CONFIG_STRICT_MODULE_RWX the image will be writable and executable until the call to bpf_jit_binary_lock_ro(). Signed-off-by: Jordan Niethe <jniethe5@gmail.com> Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210609013431.9805-7-jniethe5@gmail.com |
||
---|---|---|
.. | ||
Makefile | ||
bpf_jit.h | ||
bpf_jit64.h | ||
bpf_jit_comp.c | ||
bpf_jit_comp32.c | ||
bpf_jit_comp64.c |