[PATCH bpf-next v11 0/7] bpf-core changes for preparation of

Benjamin Tissoires posted 7 patches 3 years, 7 months ago
include/linux/bpf.h                           |  11 +-
include/linux/bpf_verifier.h                  |   2 +
include/linux/btf.h                           |  10 +
kernel/bpf/btf.c                              | 149 ++++++++++--
kernel/bpf/verifier.c                         |  66 +++--
net/bpf/test_run.c                            |  37 +++
tools/testing/selftests/bpf/Makefile          |   5 +-
.../selftests/bpf/prog_tests/kfunc_call.c     | 227 ++++++++++++++++--
.../selftests/bpf/progs/kfunc_call_fail.c     | 160 ++++++++++++
.../selftests/bpf/progs/kfunc_call_test.c     |  71 ++++++
10 files changed, 678 insertions(+), 60 deletions(-)
create mode 100644 tools/testing/selftests/bpf/progs/kfunc_call_fail.c
[PATCH bpf-next v11 0/7] bpf-core changes for preparation of
Posted by Benjamin Tissoires 3 years, 7 months ago
Hi,

well, given that the HID changes haven't moved a lot in the past
revisions and that I am cc-ing a bunch of people, I have dropped them
while we focus on the last 2 requirements in bpf-core changes.

I'll submit a HID targeted series when we get these in tree, which
would make things a lore more independent.

For reference, the whole reasons for these 2 main changes are at
https://lore.kernel.org/bpf/20220902132938.2409206-1-benjamin.tissoires@redhat.com/

Compared to v10 (in addition of dropping the HID changes), I have
changed the selftests so we can test both light skeletons and libbbpf
calls.

Cheers,
Benjamin

Benjamin Tissoires (7):
  selftests/bpf: regroup and declare similar kfuncs selftests in an
    array
  bpf: split btf_check_subprog_arg_match in two
  bpf/verifier: allow all functions to read user provided context
  selftests/bpf: add test for accessing ctx from syscall program type
  bpf/btf: bump BTF_KFUNC_SET_MAX_CNT
  bpf/verifier: allow kfunc to return an allocated mem
  selftests/bpf: Add tests for kfunc returning a memory pointer

 include/linux/bpf.h                           |  11 +-
 include/linux/bpf_verifier.h                  |   2 +
 include/linux/btf.h                           |  10 +
 kernel/bpf/btf.c                              | 149 ++++++++++--
 kernel/bpf/verifier.c                         |  66 +++--
 net/bpf/test_run.c                            |  37 +++
 tools/testing/selftests/bpf/Makefile          |   5 +-
 .../selftests/bpf/prog_tests/kfunc_call.c     | 227 ++++++++++++++++--
 .../selftests/bpf/progs/kfunc_call_fail.c     | 160 ++++++++++++
 .../selftests/bpf/progs/kfunc_call_test.c     |  71 ++++++
 10 files changed, 678 insertions(+), 60 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/progs/kfunc_call_fail.c

-- 
2.36.1
Re: [PATCH bpf-next v11 0/7] bpf-core changes for preparation of
Posted by patchwork-bot+netdevbpf@kernel.org 3 years, 7 months ago
Hello:

This series was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:

On Tue,  6 Sep 2022 17:12:56 +0200 you wrote:
> Hi,
> 
> well, given that the HID changes haven't moved a lot in the past
> revisions and that I am cc-ing a bunch of people, I have dropped them
> while we focus on the last 2 requirements in bpf-core changes.
> 
> I'll submit a HID targeted series when we get these in tree, which
> would make things a lore more independent.
> 
> [...]

Here is the summary with links:
  - [bpf-next,v11,1/7] selftests/bpf: regroup and declare similar kfuncs selftests in an array
    https://git.kernel.org/bpf/bpf-next/c/012ba1156e4a
  - [bpf-next,v11,2/7] bpf: split btf_check_subprog_arg_match in two
    https://git.kernel.org/bpf/bpf-next/c/95f2f26f3cac
  - [bpf-next,v11,3/7] bpf/verifier: allow all functions to read user provided context
    https://git.kernel.org/bpf/bpf-next/c/15baa55ff5b0
  - [bpf-next,v11,4/7] selftests/bpf: add test for accessing ctx from syscall program type
    https://git.kernel.org/bpf/bpf-next/c/fb66223a244f
  - [bpf-next,v11,5/7] bpf/btf: bump BTF_KFUNC_SET_MAX_CNT
    https://git.kernel.org/bpf/bpf-next/c/f9b348185f4d
  - [bpf-next,v11,6/7] bpf/verifier: allow kfunc to return an allocated mem
    https://git.kernel.org/bpf/bpf-next/c/eb1f7f71c126
  - [bpf-next,v11,7/7] selftests/bpf: Add tests for kfunc returning a memory pointer
    https://git.kernel.org/bpf/bpf-next/c/22ed8d5a4652

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html