Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [PATCH bpf-next v2 0/7] selftests/bpf: Fix selftests failures with LLVM 23
@ 2026-10-14 11:30 KaFai Wan
  2026-10-14 11:30 ` [PATCH bpf-next v2 1/7] bpf: Determine freplace staticness from BTF linkage KaFai Wan
                   ` (6 more replies)
  0 siblings, 7 replies; 12+ messages in thread
From: KaFai Wan @ 2026-10-14 11:30 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, John Fastabend,
	Andrii Nakryiko, Eduard Zingerman, Kumar Kartikeya Dwivedi,
	Martin KaFai Lau, Song Liu, Yonghong Song, Jiri Olsa,
	Emil Tsalapatis, Ihor Solodrai, Shuah Khan, Nathan Chancellor,
	Nick Desaulniers, Bill Wendling, Justin Stitt, Donggeun Yoo,
	Leon Hwang, KaFai Wan, Menglong Dong, Mykyta Yatsenko, Feng Jiang,
	Björn Töpel, Puranjay Mohan, Vineet Gupta,
	Mykola Lysenko, bpf, linux-kernel, linux-kselftest, llvm

Building with clang/LLVM 23 breaks several selftests. Patches #1 to #4 fix
those failures.

The following self-tests also fail under specific invocations of
test_progs:

- ./test_progs -t prog_tests_framework/test_fail -v
 test_prog_tests_framework:FAIL:skip_cnt_check
 unexpected skip_cnt_check: actual 0 != expected 2

- ./test_progs -t prog_tests_framework_expected_msgs -v
 Caught signal #11!

- ./test_progs -t prog_tests_framework_compare_text -v
 Caught signal #11!

Patches #5 to #7 fix these.

Changes in v2:
 - Collect the selftest fixes from the two patches in v1
   patches: #1, #5, #6 and #7.
 - Add three new patches: #2, #3 and #4.

Changes in v1:
 - https://lore.kernel.org/bpf/20261012135624.2749743-1-kafai.wan@linux.dev/T/
 - https://lore.kernel.org/bpf/20261012140202.2754552-1-kafai.wan@linux.dev/T/

---
KaFai Wan (7):
  bpf: Determine freplace staticness from BTF linkage
  selftests/bpf: Fix stack_arg precision backtracking log expectation
  selftests/bpf: Fix stack arg pruning test JOIN log expectation
  selftests/bpf: Use _exit() in uprobe_multi_test clone-ed child
  selftests/bpf: Fix prog_tests framework subtest count checks
  selftests/bpf: Skip expected_msgs subtests when stdout is not saved
  selftests/bpf: Skip compare_text subtest when stdout is not saved

 kernel/bpf/verifier.c                         |  3 +-
 .../selftests/bpf/prog_tests/exceptions.c     |  2 +-
 .../bpf/prog_tests/prog_tests_framework.c     | 34 ++++++++++++++-----
 .../bpf/prog_tests/uprobe_multi_test.c        |  4 +--
 .../selftests/bpf/progs/stack_arg_precision.c |  4 +--
 .../selftests/bpf/progs/verifier_stack_arg.c  |  4 +--
 6 files changed, 34 insertions(+), 17 deletions(-)

-- 
2.43.0

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-10-14 16:20 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-14 11:30 [PATCH bpf-next v2 0/7] selftests/bpf: Fix selftests failures with LLVM 23 KaFai Wan
2026-10-14 11:30 ` [PATCH bpf-next v2 1/7] bpf: Determine freplace staticness from BTF linkage KaFai Wan
2026-10-14 11:30 ` [PATCH bpf-next v2 2/7] selftests/bpf: Fix stack_arg precision backtracking log expectation KaFai Wan
2026-10-14 11:30 ` [PATCH bpf-next v2 3/7] selftests/bpf: Fix stack arg pruning test JOIN " KaFai Wan
2026-10-14 11:30 ` [PATCH bpf-next v2 4/7] selftests/bpf: Use _exit() in uprobe_multi_test clone-ed child KaFai Wan
2026-10-14 11:30 ` [PATCH bpf-next v2 5/7] selftests/bpf: Fix prog_tests framework subtest count checks KaFai Wan
2026-10-14 11:30 ` [PATCH bpf-next v2 6/7] selftests/bpf: Skip expected_msgs subtests when stdout is not saved KaFai Wan
2026-10-14 12:08   ` bot+bpf-ci
2026-10-14 15:41     ` KaFai Wan
2026-10-14 11:30 ` [PATCH bpf-next v2 7/7] selftests/bpf: Skip compare_text subtest " KaFai Wan
2026-10-14 12:08   ` bot+bpf-ci
2026-10-14 16:20     ` KaFai Wan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox