Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] bpf, arm64: Stack argument fixes
@ 2026-05-28 16:17 Puranjay Mohan
  2026-05-28 16:17 ` [PATCH bpf-next 1/2] bpf, arm64: Fix redundant MOV and clarify stack arg comments Puranjay Mohan
  2026-05-28 16:17 ` [PATCH bpf-next 2/2] selftests/bpf: Use at least 10 args in stack argument tests Puranjay Mohan
  0 siblings, 2 replies; 4+ messages in thread
From: Puranjay Mohan @ 2026-05-28 16:17 UTC (permalink / raw)
  To: bpf, Yonghong Song
  Cc: Puranjay Mohan, Alexei Starovoitov, Daniel Borkmann,
	Andrii Nakryiko, Martin KaFai Lau, Eduard Zingerman,
	Kumar Kartikeya Dwivedi, Song Liu, Xu Kuohai, Catalin Marinas,
	Will Deacon, linux-arm-kernel

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
-- 
2.53.0-Meta



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

end of thread, other threads:[~2026-05-28 21:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-28 16:17 [PATCH bpf-next 0/2] bpf, arm64: Stack argument fixes Puranjay Mohan
2026-05-28 16:17 ` [PATCH bpf-next 1/2] bpf, arm64: Fix redundant MOV and clarify stack arg comments Puranjay Mohan
2026-05-28 16:17 ` [PATCH bpf-next 2/2] selftests/bpf: Use at least 10 args in stack argument tests Puranjay Mohan
2026-05-28 20:55   ` Yonghong Song

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