Skip to content

core_reloc fixes for s390

Ilya Leoshkevich bpf 3 versions – Applied

Status from this message: Applied to bpf-next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 2 repliesApplied
  2. v25 patches 1 replySuperseded
  3. v13 patches 2 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/6libbpf: Fix endianness detection in BPF_CORE_READ_BITFIELD_PROBED()tools/lib/bpf/bpf_core_read.h+1 -10 replies
2/6libbpf: Use __BYTE_ORDER__tools/lib/bpf/btf.c tools/lib/bpf/btf_dump.c tools/lib/bpf/libbpf.c +2 more+15 -151 reply
3/6selftests/bpf: Use __BYTE_ORDER__tools/testing/selftests/bpf/prog_tests/btf_endian.c tools/testing/selftests/bpf/test_sysctl.c tools/testing/selftests/bpf/verifier/ctx_skb.c +2 more+16 -160 replies
4/6samples: seccomp: use __BYTE_ORDER__samples/seccomp/bpf-helper.h+4 -40 replies
5/6selftests/seccomp: Use __BYTE_ORDER__tools/testing/selftests/seccomp/seccomp_bpf.c+3 -30 replies
6/6selftests/bpf: Fix test_core_reloc_mods on big-endian machinestools/testing/selftests/bpf/progs/test_core_reloc_mods.c+9 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH bpf-next v3 0/6] core_reloc fixes for s390

v2: https://lore.kernel.org/bpf/[email protected]/
v2 -> v3: Split the fix from the cleanup (Daniel).

v1: https://lore.kernel.org/bpf/[email protected]/
v1 -> v2: Drop bpf_core_calc_field_relo() restructuring, split the

          __BYTE_ORDER__ change (Andrii).

Hi,

this series fixes test failures in core_reloc on s390.

Patch 1 fixes an endianness bug with __BYTE_ORDER vs __BYTE_ORDER__. Patches 2-5 make the rest of the code consistent in that respect. Patch 6 fixes an endianness issue in test_core_reloc_mods.

Best regards,
Ilya

Ilya Leoshkevich (6):
libbpf: Fix endianness detection in BPF_CORE_READ_BITFIELD_PROBED()
libbpf: Use __BYTE_ORDER__
selftests/bpf: Use __BYTE_ORDER__
samples: seccomp: use __BYTE_ORDER__
selftests/seccomp: Use __BYTE_ORDER__
selftests/bpf: Fix test_core_reloc_mods on big-endian machines

 samples/seccomp/bpf-helper.h                       |  8 ++++----
 tools/lib/bpf/bpf_core_read.h                      |  2 +-
 tools/lib/bpf/btf.c                                |  4 ++--
 tools/lib/bpf/btf_dump.c                           |  8 ++++----
 tools/lib/bpf/libbpf.c                             |  4 ++--
 tools/lib/bpf/linker.c                             | 12 ++++++------
 tools/lib/bpf/relo_core.c                          |  2 +-
 .../testing/selftests/bpf/prog_tests/btf_endian.c  |  6 +++---
 .../selftests/bpf/progs/test_core_reloc_mods.c     |  9 +++++++++
 tools/testing/selftests/bpf/test_sysctl.c          |  4 ++--
 tools/testing/selftests/bpf/verifier/ctx_skb.c     | 14 +++++++-------
 tools/testing/selftests/bpf/verifier/lwt.c         |  2 +-
 .../bpf/verifier/perf_event_sample_period.c        |  6 +++---
 tools/testing/selftests/seccomp/seccomp_bpf.c      |  6 +++---
 14 files changed, 48 insertions(+), 39 deletions(-)
Signature · 1 line
2.31.1