mbox series

[v3,0/3] Fix up bpf_jit_limit some more

Message ID 20211014142554.53120-1-lmb@cloudflare.com (mailing list archive)
Headers show
Series Fix up bpf_jit_limit some more | expand

Message

Lorenz Bauer Oct. 14, 2021, 2:25 p.m. UTC
Fix some inconsistencies of bpf_jit_limit on non-x86 platforms.
I've dropped exposing bpf_jit_current since we couldn't agree on
file modes, correct names, etc.

Lorenz Bauer (3):
  bpf: define bpf_jit_alloc_exec_limit for riscv JIT
  bpf: define bpf_jit_alloc_exec_limit for arm64 JIT
  bpf: prevent increasing bpf_jit_limit above max

 arch/arm64/net/bpf_jit_comp.c | 5 +++++
 arch/riscv/net/bpf_jit_core.c | 5 +++++
 include/linux/filter.h        | 1 +
 kernel/bpf/core.c             | 4 +++-
 net/core/sysctl_net_core.c    | 2 +-
 5 files changed, 15 insertions(+), 2 deletions(-)

Comments

Alexei Starovoitov Oct. 21, 2021, 1:22 a.m. UTC | #1
On Thu, Oct 14, 2021 at 7:26 AM Lorenz Bauer <lmb@cloudflare.com> wrote:
>
> Fix some inconsistencies of bpf_jit_limit on non-x86 platforms.
> I've dropped exposing bpf_jit_current since we couldn't agree on
> file modes, correct names, etc.

Applied to bpf tree. Seems more appropriate there.