Skip to content

bpf, arm64: Stack argument fixes

Puranjay Mohan bpf linux-arm-kernel 1 version Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2bpf, arm64: Fix redundant MOV and clarify stack arg commentsarch/arm64/net/bpf_jit_comp.c+7 -50 repliesApplied
2/2selftests/bpf: Use at least 10 args in stack argument teststools/testing/selftests/bpf/prog_tests/stack_arg.c tools/testing/selftests/bpf/progs/stack_arg.c tools/testing/selftests/bpf/progs/stack_arg_kfunc.c +2 more+108 -721 replyApplied

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchYonghong Song
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH bpf-next 0/2] bpf, arm64: Stack argument fixes

Patch 1 fixes a redundant MOV in the arm64 JIT's emit_stack_arg_store_imm() and clarifies the stack layout comments. This is not a bug fix but an improvement.

Patch 2 bumps the stack argument tests from 6-8 args to at least 10 so they actually exercise the native stack on arm64, where x0-x7 cover the first 8 arguments.

Puranjay Mohan (2):
bpf, arm64: Fix redundant MOV and clarify stack arg comments selftests/bpf: Use at least 10 args in stack argument tests

 arch/arm64/net/bpf_jit_comp.c                 | 12 +--
 .../selftests/bpf/prog_tests/stack_arg.c      | 30 +++----
 tools/testing/selftests/bpf/progs/stack_arg.c | 90 +++++++++++--------
 .../selftests/bpf/progs/stack_arg_kfunc.c     | 24 ++---
 .../selftests/bpf/test_kmods/bpf_testmod.c    | 25 ++++--
 .../bpf/test_kmods/bpf_testmod_kfunc.h        | 11 ++-
 6 files changed, 115 insertions(+), 77 deletions(-)

base-commit: e42e53ae23b7d41df22ccd7788192bf578f24da2

Signature · 1 line
2.53.0-Meta