Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Paul Chaignon <paul.chaignon@gmail.com>
To: stable@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Sasha Levin <sashal@kernel.org>,
	Shung-Hsi Yu <shung-hsi.yu@suse.com>,
	Daniel Borkmann <daniel@iogearbox.net>,
	Alexei Starovoitov <ast@kernel.org>,
	Eduard Zingerman <eddyz87@gmail.com>,
	Andrii Nakryiko <andrii@kernel.org>,
	Martin KaFai Lau <martin.lau@kernel.org>,
	Stanislav Fomichev <sdf@google.com>,
	Yonghong Song <yonghong.song@linux.dev>,
	Jiri Olsa <jolsa@kernel.org>
Subject: [PATCH 6.1.y 00/11] Fix BPF selftests
Date: Tue, 2 Jun 2026 11:28:43 +0200	[thread overview]
Message-ID: <cover.1780392092.git.paul.chaignon@gmail.com> (raw)

This patchset fixes the BPF selftests on 6.1. Its patches fall into
two categories:
- Reverts of backported selftests, usually because they test a change
  that didn't land in 6.1 (3 patches).
- Backports of selftest fixes and their dependencies (8 patches).

With this, the BPF selftests are passing on 6.1 (tested with both LLVM
16 and 18).

Andrii Nakryiko (3):
  selftests/bpf: add generic BPF program tester-loader
  selftests/bpf: Convert test_global_funcs test to test_loader framework
  selftests/bpf: enhance align selftest's expected log matching

Daniel Borkmann (1):
  selftests/bpf: Fix ARG_PTR_TO_LONG {half-,}uninitialized test

Jiri Olsa (1):
  selftests/bpf: Add read_build_id function

Martin KaFai Lau (1):
  selftests/bpf: S/iptables/iptables-legacy/ in the bpf_nf and
    xdp_synproxy test

Paul Chaignon (3):
  Revert "selftests/bpf: Workaround strict bpf_lsm return value check."
  Revert "selftests/bpf: Add tests for _opts variants of
    bpf_*_get_fd_by_id()"
  Revert "selftests/bpf: Add a cgroup prog bpf_get_ns_current_pid_tgid()
    test"

Stanislav Fomichev (1):
  selftests/bpf: Update bpf_clone_redirect expected return code

Yonghong Song (1):
  bpf: Fix a few selftest failures due to llvm18 change

 tools/testing/selftests/bpf/DENYLIST.s390x    |   1 -
 tools/testing/selftests/bpf/Makefile          |   2 +-
 .../testing/selftests/bpf/prog_tests/align.c  |  18 +-
 .../testing/selftests/bpf/prog_tests/bpf_nf.c |   6 +-
 .../selftests/bpf/prog_tests/empty_skb.c      |  12 +-
 .../bpf/prog_tests/libbpf_get_fd_by_id_opts.c |  87 -------
 .../bpf/prog_tests/ns_current_pid_tgid.c      |  73 ------
 .../bpf/prog_tests/test_global_funcs.c        | 131 +++-------
 .../selftests/bpf/prog_tests/xdp_synproxy.c   |   6 +-
 tools/testing/selftests/bpf/progs/bpf_misc.h  |   5 +
 .../selftests/bpf/progs/test_global_func1.c   |   6 +-
 .../selftests/bpf/progs/test_global_func10.c  |   1 +
 .../selftests/bpf/progs/test_global_func11.c  |   4 +-
 .../selftests/bpf/progs/test_global_func12.c  |   4 +-
 .../selftests/bpf/progs/test_global_func13.c  |   4 +-
 .../selftests/bpf/progs/test_global_func14.c  |   4 +-
 .../selftests/bpf/progs/test_global_func15.c  |   4 +-
 .../selftests/bpf/progs/test_global_func16.c  |   4 +-
 .../selftests/bpf/progs/test_global_func17.c  |   5 +-
 .../selftests/bpf/progs/test_global_func2.c   |  43 +++-
 .../selftests/bpf/progs/test_global_func3.c   |  10 +-
 .../selftests/bpf/progs/test_global_func4.c   |  55 ++++-
 .../selftests/bpf/progs/test_global_func5.c   |   4 +-
 .../selftests/bpf/progs/test_global_func6.c   |   4 +-
 .../selftests/bpf/progs/test_global_func7.c   |   4 +-
 .../selftests/bpf/progs/test_global_func8.c   |   4 +-
 .../selftests/bpf/progs/test_global_func9.c   |   4 +-
 .../bpf/progs/test_libbpf_get_fd_by_id_opts.c |  37 ---
 .../bpf/progs/test_ns_current_pid_tgid.c      |   7 -
 tools/testing/selftests/bpf/test_loader.c     | 233 ++++++++++++++++++
 tools/testing/selftests/bpf/test_progs.h      |  33 +++
 tools/testing/selftests/bpf/trace_helpers.c   |  82 ++++++
 tools/testing/selftests/bpf/trace_helpers.h   |   5 +
 .../testing/selftests/bpf/verifier/int_ptr.c  |   6 +-
 34 files changed, 561 insertions(+), 347 deletions(-)
 delete mode 100644 tools/testing/selftests/bpf/prog_tests/libbpf_get_fd_by_id_opts.c
 delete mode 100644 tools/testing/selftests/bpf/progs/test_libbpf_get_fd_by_id_opts.c
 create mode 100644 tools/testing/selftests/bpf/test_loader.c

-- 
2.43.0


             reply	other threads:[~2026-06-02  9:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-02  9:28 Paul Chaignon [this message]
2026-06-02  9:29 ` [PATCH 6.1.y 01/11] selftests/bpf: add generic BPF program tester-loader Paul Chaignon
2026-06-02  9:29 ` [PATCH 6.1.y 02/11] selftests/bpf: Convert test_global_funcs test to test_loader framework Paul Chaignon
2026-06-02  9:29 ` [PATCH 6.1.y 03/11] Revert "selftests/bpf: Workaround strict bpf_lsm return value check." Paul Chaignon
2026-06-02  9:30 ` [PATCH 6.1.y 04/11] Revert "selftests/bpf: Add tests for _opts variants of bpf_*_get_fd_by_id()" Paul Chaignon
2026-06-02  9:30 ` [PATCH 6.1.y 05/11] selftests/bpf: Add read_build_id function Paul Chaignon
2026-06-02  9:30 ` [PATCH 6.1.y 06/11] bpf: Fix a few selftest failures due to llvm18 change Paul Chaignon
2026-06-02  9:30 ` [PATCH 6.1.y 07/11] selftests/bpf: Update bpf_clone_redirect expected return code Paul Chaignon
2026-06-02  9:30 ` [PATCH 6.1.y 08/11] selftests/bpf: enhance align selftest's expected log matching Paul Chaignon
2026-06-02  9:30 ` [PATCH 6.1.y 09/11] Revert "selftests/bpf: Add a cgroup prog bpf_get_ns_current_pid_tgid() test" Paul Chaignon
2026-06-02  9:30 ` [PATCH 6.1.y 10/11] selftests/bpf: Fix ARG_PTR_TO_LONG {half-,}uninitialized test Paul Chaignon
2026-06-02  9:31 ` [PATCH 6.1.y 11/11] selftests/bpf: S/iptables/iptables-legacy/ in the bpf_nf and xdp_synproxy test Paul Chaignon
2026-06-02 18:21 ` [PATCH 6.1.y 00/11] Fix BPF selftests Sasha Levin
2026-06-02 18:58   ` Paul Chaignon

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=cover.1780392092.git.paul.chaignon@gmail.com \
    --to=paul.chaignon@gmail.com \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=eddyz87@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jolsa@kernel.org \
    --cc=martin.lau@kernel.org \
    --cc=sashal@kernel.org \
    --cc=sdf@google.com \
    --cc=shung-hsi.yu@suse.com \
    --cc=stable@vger.kernel.org \
    --cc=yonghong.song@linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox