bpf, arm32: fix to use bpf_jit_binary_lock_ro api
authorDaniel Borkmann <daniel@iogearbox.net>
Thu, 28 Jun 2018 21:34:57 +0000 (23:34 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 29 Jun 2018 17:47:35 +0000 (10:47 -0700)
commit18d405af30bf6506bf2fc49056de7691c949812e
tree0028d4fd98fbeb4a29c9809b1e9a0c434325e18b
parent4c79579b44b1876444f4d04de31c1a37098a0350
bpf, arm32: fix to use bpf_jit_binary_lock_ro api

Any eBPF JIT that where its underlying arch supports ARCH_HAS_SET_MEMORY
would need to use bpf_jit_binary_{un,}lock_ro() pair instead of the
set_memory_{ro,rw}() pair directly as otherwise changes to the former
might break. arm32's eBPF conversion missed to change it, so fix this
up here.

Fixes: 39c13c204bb1 ("arm: eBPF JIT compiler")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
arch/arm/net/bpf_jit_32.c