Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH stable 6.6 0/8] Fix BPF selftests compilation error
@ 2024-11-26  7:21 Shung-Hsi Yu
  2024-11-26  7:21 ` [PATCH stable 6.6 1/8] selftests/bpf: Add netlink helper library Shung-Hsi Yu
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: Shung-Hsi Yu @ 2024-11-26  7:21 UTC (permalink / raw)
  To: stable
  Cc: Andrii Nakryiko, Alexei Starovoitov, Daniel Borkmann, Hao Luo,
	Shung-Hsi Yu, Eduard Zingerman, Hou Tao, Cupertino Miranda

Currently the BPF selftests in fails to compile (with
tools/testing/selftests/bpf/vmtest.sh) due to use of test helpers that
were not backported, namely:
- netlink_helpers.h
- __xlated()

The 1st patch in the series adds netlink_helpers.h, and the 8th patch in
the series adds the __xlated() helper. Patch 2-7 are pulled as context
for the __xlated() helper.

Cupertino Miranda (1):
  selftests/bpf: Support checks against a regular expression

Daniel Borkmann (1):
  selftests/bpf: Add netlink helper library

Eduard Zingerman (5):
  selftests/bpf: extract utility function for BPF disassembly
  selftests/bpf: print correct offset for pseudo calls in disasm_insn()
  selftests/bpf: no need to track next_match_pos in struct test_loader
  selftests/bpf: extract test_loader->expect_msgs as a data structure
  selftests/bpf: allow checking xlated programs in verifier_* tests

Hou Tao (1):
  selftests/bpf: Factor out get_xlated_program() helper

 tools/testing/selftests/bpf/Makefile          |  20 +-
 tools/testing/selftests/bpf/disasm_helpers.c  |  69 ++++
 tools/testing/selftests/bpf/disasm_helpers.h  |  12 +
 tools/testing/selftests/bpf/netlink_helpers.c | 358 ++++++++++++++++++
 tools/testing/selftests/bpf/netlink_helpers.h |  46 +++
 .../selftests/bpf/prog_tests/ctx_rewrite.c    | 118 +-----
 tools/testing/selftests/bpf/progs/bpf_misc.h  |  16 +-
 tools/testing/selftests/bpf/test_loader.c     | 235 +++++++++---
 tools/testing/selftests/bpf/test_progs.h      |   1 -
 tools/testing/selftests/bpf/test_verifier.c   |  47 +--
 tools/testing/selftests/bpf/testing_helpers.c |  43 +++
 tools/testing/selftests/bpf/testing_helpers.h |   6 +
 12 files changed, 759 insertions(+), 212 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/disasm_helpers.c
 create mode 100644 tools/testing/selftests/bpf/disasm_helpers.h
 create mode 100644 tools/testing/selftests/bpf/netlink_helpers.c
 create mode 100644 tools/testing/selftests/bpf/netlink_helpers.h

-- 
2.47.0


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

end of thread, other threads:[~2024-12-17  6:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-26  7:21 [PATCH stable 6.6 0/8] Fix BPF selftests compilation error Shung-Hsi Yu
2024-11-26  7:21 ` [PATCH stable 6.6 1/8] selftests/bpf: Add netlink helper library Shung-Hsi Yu
2024-11-26 15:39   ` Sasha Levin
2024-11-26  7:21 ` [PATCH stable 6.6 2/8] selftests/bpf: Support checks against a regular expression Shung-Hsi Yu
2024-11-26  7:21 ` [PATCH stable 6.6 3/8] selftests/bpf: Factor out get_xlated_program() helper Shung-Hsi Yu
2024-11-26  7:21 ` [PATCH stable 6.6 4/8] selftests/bpf: extract utility function for BPF disassembly Shung-Hsi Yu
2024-11-26  7:21 ` [PATCH stable 6.6 5/8] selftests/bpf: print correct offset for pseudo calls in disasm_insn() Shung-Hsi Yu
2024-11-26  7:21 ` [PATCH stable 6.6 6/8] selftests/bpf: no need to track next_match_pos in struct test_loader Shung-Hsi Yu
2024-11-26  7:21 ` [PATCH stable 6.6 7/8] selftests/bpf: extract test_loader->expect_msgs as a data structure Shung-Hsi Yu
2024-11-26  7:21 ` [PATCH stable 6.6 8/8] selftests/bpf: allow checking xlated programs in verifier_* tests Shung-Hsi Yu
2024-11-27 16:20 ` [PATCH stable 6.6 0/8] Fix BPF selftests compilation error Sasha Levin
2024-12-17  6:11   ` Shung-Hsi Yu

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