mbox series

[v2,bpf-next,0/3] bpf: Retire the unsupported_ops usage in struct_ops

Message ID 20240722183049.2254692-1-martin.lau@linux.dev (mailing list archive)
Headers show
Series bpf: Retire the unsupported_ops usage in struct_ops | expand

Message

Martin KaFai Lau July 22, 2024, 6:30 p.m. UTC
From: Martin KaFai Lau <martin.lau@kernel.org>

This series retires the unsupported_ops usage and depends on the
null-ness check on the cfi_stubs instead.

Please see individual patches for details.

v2:
- Fixed a gcc compiler warning on Patch 1.

Martin KaFai Lau (3):
  bpf: Check unsupported ops from the bpf_struct_ops's cfi_stubs
  selftests/bpf: Fix the missing tramp_1 to tramp_40 ops in cfi_stubs
  selftests/bpf: Ensure the unsupported struct_ops prog cannot be loaded

 include/linux/bpf.h                           |  5 ++++
 kernel/bpf/bpf_struct_ops.c                   |  7 +++++
 kernel/bpf/verifier.c                         | 10 ++++++-
 net/ipv4/bpf_tcp_ca.c                         | 26 -------------------
 .../selftests/bpf/bpf_testmod/bpf_testmod.c   | 14 ++++++++++
 .../selftests/bpf/bpf_testmod/bpf_testmod.h   |  1 +
 .../bpf/prog_tests/test_struct_ops_module.c   |  2 ++
 .../selftests/bpf/progs/unsupported_ops.c     | 22 ++++++++++++++++
 8 files changed, 60 insertions(+), 27 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/progs/unsupported_ops.c

Comments

bot+bpf-ci@kernel.org July 22, 2024, 6:58 p.m. UTC | #1
Dear patch submitter,

CI has tested the following submission:
Status:     SUCCESS
Name:       [v2,bpf-next,0/3] bpf: Retire the unsupported_ops usage in struct_ops
Patchwork:  https://patchwork.kernel.org/project/netdevbpf/list/?series=873037&state=*
Matrix:     https://github.com/kernel-patches/bpf/actions/runs/10046511396

No further action is necessary on your part.


Please note: this email is coming from an unmonitored mailbox. If you have
questions or feedback, please reach out to the Meta Kernel CI team at
kernel-ci@meta.com.
patchwork-bot+netdevbpf@kernel.org July 22, 2024, 7:30 p.m. UTC | #2
Hello:

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

On Mon, 22 Jul 2024 11:30:44 -0700 you wrote:
> From: Martin KaFai Lau <martin.lau@kernel.org>
> 
> This series retires the unsupported_ops usage and depends on the
> null-ness check on the cfi_stubs instead.
> 
> Please see individual patches for details.
> 
> [...]

Here is the summary with links:
  - [v2,bpf-next,1/3] bpf: Check unsupported ops from the bpf_struct_ops's cfi_stubs
    https://git.kernel.org/bpf/bpf-next/c/50affe28672e
  - [v2,bpf-next,2/3] selftests/bpf: Fix the missing tramp_1 to tramp_40 ops in cfi_stubs
    https://git.kernel.org/bpf/bpf-next/c/b794efaacc95
  - [v2,bpf-next,3/3] selftests/bpf: Ensure the unsupported struct_ops prog cannot be loaded
    https://git.kernel.org/bpf/bpf-next/c/4979996ac0fb

You are awesome, thank you!