[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <162388400488.151936.1658153981415911010.stgit@john-XPS-13-9370>
Date: Wed, 16 Jun 2021 15:54:42 -0700
From: John Fastabend <john.fastabend@...il.com>
To: maciej.fijalkowski@...el.com, ast@...nel.org, daniel@...earbox.net,
andriin@...com
Cc: john.fastabend@...il.com, netdev@...r.kernel.org,
netdev@...r.kernel.org
Subject: [PATCH bpf v2 0/4] BPF fixes mixed tail and bpf2bpf calls
We recently tried to use mixed programs that have both tail calls and
subprograms, but it needs the attached fixes.
Also added a new test case tailcall_bpf2bpf_5 that simply runs the
previous test case tailcall_bpf2bpf_4 and adds some "noise". The
noise here is just a bunch of map calls to get the verifier to insert
instructions and cause code movement plus it forces used_maps logic
to be used. Originally, I just extended bpf2bpf_4 directly, but if I
got the feedback correct it seems the preference is to have another
test case for this specifically.
With attached patches our programs are happily running with mixed
subprograms and tailcalls.
Thanks,
John
---
John Fastabend (4):
bpf: Fix null ptr deref with mixed tail calls and subprogs
bpf: map_poke_descriptor is being called with an unstable poke_tab[]
bpf: track subprog poke correctly
bpf: selftest to verify mixing bpf2bpf calls and tailcalls with insn patch
include/linux/bpf.h | 1 +
kernel/bpf/core.c | 6 ++--
kernel/bpf/verifier.c | 36 ++++++++++++++-----
.../selftests/bpf/prog_tests/tailcalls.c | 36 +++++++++++++------
.../selftests/bpf/progs/tailcall_bpf2bpf4.c | 20 ++++++++++-
5 files changed, 77 insertions(+), 22 deletions(-)
--
Powered by blists - more mailing lists