Skip to content

libbpf: Fix accessing the first syscall argument on s390

Ilya Leoshkevich bpf 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3s390/bpf: Add orig_gpr2 to user_pt_regsarch/s390/include/asm/ptrace.h arch/s390/include/uapi/asm/ptrace.h+2 -19 replies
2/3selftests/bpf: Fix an endianness issue in bpf_syscall_macro testtools/testing/selftests/bpf/progs/bpf_syscall_macro.c+4 -10 replies
3/3libbpf: Fix accessing the first syscall argument on s390tools/lib/bpf/bpf_tracing.h+9 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH bpf-next 0/3] libbpf: Fix accessing the first syscall argument on s390

libbpf CI reported a bpf_syscall_macro test failure on s390 [1], which happens because the code uses gprs[2] instead of orig_gpr2 to access the first syscall argument. Patches 1-2 are preparations, patch 3 fixes the issue.

@Heiko, @Vasily, @Christian, @Alexander - could you please review patch 1, which touches arch/s390? Would it be ok to put it into bpf-next tree?

[1] https://github.com/libbpf/libbpf/runs/5025905587

Ilya Leoshkevich (3):
s390/bpf: Add orig_gpr2 to user_pt_regs selftests/bpf: Fix an endianness issue in bpf_syscall_macro test
libbpf: Fix accessing the first syscall argument on s390

 arch/s390/include/asm/ptrace.h                        | 2 +-
 arch/s390/include/uapi/asm/ptrace.h                   | 1 +
 tools/lib/bpf/bpf_tracing.h                           | 9 +++++++++
 tools/testing/selftests/bpf/progs/bpf_syscall_macro.c | 5 ++++-
 4 files changed, 15 insertions(+), 2 deletions(-)
Signature · 1 line
2.34.1