From: Martin KaFai Lau <martin.lau@linux.dev>
To: bpf@vger.kernel.org
Cc: Alexei Starovoitov <ast@kernel.org>,
Andrii Nakryiko <andrii@kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>,
kernel-team@meta.com
Subject: [PATCH bpf-next 0/3] bpf: Retire the unsupported_ops usage in struct_ops
Date: Fri, 19 Jul 2024 23:22:28 -0700 [thread overview]
Message-ID: <20240720062233.2319723-1-martin.lau@linux.dev> (raw)
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.
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
--
2.43.0
next reply other threads:[~2024-07-20 6:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-20 6:22 Martin KaFai Lau [this message]
2024-07-20 6:22 ` [PATCH bpf-next 1/3] bpf: Check unsupported ops from the bpf_struct_ops's cfi_stubs Martin KaFai Lau
2024-07-20 14:45 ` kernel test robot
2024-07-21 22:45 ` Amery Hung
2024-07-22 17:34 ` Martin KaFai Lau
2024-07-20 6:22 ` [PATCH bpf-next 2/3] selftests/bpf: Fix the missing tramp_1 to tramp_40 ops in cfi_stubs Martin KaFai Lau
2024-07-20 6:22 ` [PATCH bpf-next 3/3] selftests/bpf: Ensure the unsupported struct_ops prog cannot be loaded Martin KaFai Lau
2024-07-20 6:43 ` [PATCH bpf-next 0/3] bpf: Retire the unsupported_ops usage in struct_ops bot+bpf-ci
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240720062233.2319723-1-martin.lau@linux.dev \
--to=martin.lau@linux.dev \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=kernel-team@meta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.