public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH stable 6.6 v2 0/2] Fix BPF selftests compilation error
@ 2024-12-17  7:28 Shung-Hsi Yu
  2024-12-17  7:28 ` [PATCH stable 6.6 v2 1/2] selftests/bpf: Add netlink helper library Shung-Hsi Yu
  2024-12-17  7:28 ` [PATCH stable 6.6 v2 2/2] selftests/bpf: remove use of __xlated() Shung-Hsi Yu
  0 siblings, 2 replies; 7+ messages in thread
From: Shung-Hsi Yu @ 2024-12-17  7:28 UTC (permalink / raw)
  To: stable, Sasha Levin
  Cc: Eduard Zingerman, Daniel Borkmann, Martin KaFai Lau, Shung-Hsi Yu

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@suse.com>:
- 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


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

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

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-17  7:28 [PATCH stable 6.6 v2 0/2] Fix BPF selftests compilation error Shung-Hsi Yu
2024-12-17  7:28 ` [PATCH stable 6.6 v2 1/2] selftests/bpf: Add netlink helper library Shung-Hsi Yu
2024-12-17 12:55   ` Sasha Levin
2024-12-17  7:28 ` [PATCH stable 6.6 v2 2/2] selftests/bpf: remove use of __xlated() Shung-Hsi Yu
2024-12-17  7:41   ` Greg KH
2024-12-17  7:57     ` Shung-Hsi Yu
2024-12-17 12:55   ` Sasha Levin

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