aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/net/bpf_jit_comp64.c
diff options
context:
space:
mode:
authorSong Liu <[email protected]>2023-12-06 14:40:51 -0800
committerAlexei Starovoitov <[email protected]>2023-12-06 17:17:20 -0800
commit38b8b58ae776bf748bd1bd7a24c3fd1d10f76f45 (patch)
treeaf31897df3062fe16cfd7962d0e5dab0a3767be6 /arch/riscv/net/bpf_jit_comp64.c
parent82583daa2efc2e336962b231a46bad03a280b3e0 (diff)
bpf, x86: Adjust arch_prepare_bpf_trampoline return value
x86's implementation of arch_prepare_bpf_trampoline() requires BPF_INSN_SAFETY buffer space between end of program and image_end. OTOH, the return value does not include BPF_INSN_SAFETY. This doesn't cause any real issue at the moment. However, "image" of size retval is not enough for arch_prepare_bpf_trampoline(). This will cause confusion when we introduce a new helper arch_bpf_trampoline_size(). To avoid future confusion, adjust the return value to include BPF_INSN_SAFETY. Signed-off-by: Song Liu <[email protected]> Acked-by: Ilya Leoshkevich <[email protected]> Acked-by: Jiri Olsa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'arch/riscv/net/bpf_jit_comp64.c')
0 files changed, 0 insertions, 0 deletions