[PATCH stable 6.6 v2 0/2] Fix BPF selftests compilation error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Currently the BPF selftests in fails to compile due to use of test
helpers that were not backported, namely:
- netlink_helpers.h
- __xlated()

The 1st patch adds netlink helper files, and the 2nd patch removes the
use of __xlated() helper.

Note this series simply fix the compilation failure. Even with this
series is applied the BPF selftests fails to run to completion due to
kernel panic in the dummy_st_ops tests.

Changes since v1 <https://lore.kernel.org/all/20241126072137.823699-1-shung-hsi.yu@xxxxxxxx>:
- drop dependencies of __xlated() helper, and opt to remove its use
  instead.

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

Shung-Hsi Yu (1):
  selftests/bpf: remove use of __xlated()

 tools/testing/selftests/bpf/Makefile          |  19 +-
 tools/testing/selftests/bpf/netlink_helpers.c | 358 ++++++++++++++++++
 tools/testing/selftests/bpf/netlink_helpers.h |  46 +++
 .../selftests/bpf/progs/verifier_scalar_ids.c |  16 -
 4 files changed, 418 insertions(+), 21 deletions(-)
 create mode 100644 tools/testing/selftests/bpf/netlink_helpers.c
 create mode 100644 tools/testing/selftests/bpf/netlink_helpers.h

-- 
2.47.1





[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux