Commit 7c616437 authored by Jisheng Zhang's avatar Jisheng Zhang Committed by Greg Kroah-Hartman
Browse files

riscv: bpf: Move bpf_jit_alloc_exec() and bpf_jit_free_exec() to core



[ Upstream commit 1d27d854 ]

We will drop the executable permissions of the code pages from the
mapping at allocation time soon. Move bpf_jit_alloc_exec() and
bpf_jit_free_exec() to bpf_jit_core.c so that they can be shared by
both RV64I and RV32I.

Signed-off-by: default avatarJisheng Zhang <jszhang@kernel.org>
Acked-by: default avatarLuke Nelson <luke.r.nels@gmail.com>
Signed-off-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
Stable-dep-of: c56fb2aa ("riscv, bpf: Fix inconsistent JIT image generation")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 83579a62
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment