]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Feb 2019 04:53:01 +0000 (04:53 +0000)
commit1158556fbf75799a5ee9fd7da9ff0d147c677dfe
tree0134c6f909b2f2dbb017c0713cc598b1b3275c88
parent97a6b62386e447afe9534bc063e2622f81d5cbc3
bpf, arm32: fix to use bpf_jit_binary_lock_ro api

BugLink: http://bugs.launchpad.net/bugs/1811877
commit 18d405af30bf6506bf2fc49056de7691c949812e upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/arm/net/bpf_jit_32.c