]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit67afe8b556f2605a981b6b439874f0971655b7f0
tree0028d4fd98fbeb4a29c9809b1e9a0c434325e18b
parent09da86a83bd7cf6d4441c77adf84c4e8918cee33
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: 3b9837afcaa3 ("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