From: Puranjay Mohan <puranjay@kernel•org>
To: bpf@vger•kernel.org, "Yonghong Song" <yonghong.song@linux•dev>
Cc: Puranjay Mohan <puranjay@kernel•org>,
"Alexei Starovoitov" <ast@kernel•org>,
"Daniel Borkmann" <daniel@iogearbox•net>,
"Andrii Nakryiko" <andrii@kernel•org>,
"Martin KaFai Lau" <martin.lau@linux•dev>,
"Eduard Zingerman" <eddyz87@gmail•com>,
"Kumar Kartikeya Dwivedi" <memxor@gmail•com>,
"Song Liu" <song@kernel•org>,
"Xu Kuohai" <xukuohai@huaweicloud•com>,
"Catalin Marinas" <catalin.marinas@arm•com>,
"Will Deacon" <will@kernel•org>,
linux-arm-kernel@lists•infradead.org
Subject: [PATCH bpf-next 0/2] bpf, arm64: Stack argument fixes
Date: Thu, 28 May 2026 09:17:46 -0700 [thread overview]
Message-ID: <20260528161750.1900674-1-puranjay@kernel.org> (raw)
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
next reply other threads:[~2026-05-28 16:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-28 16:17 Puranjay Mohan [this message]
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
2026-06-01 0:50 ` [PATCH bpf-next 0/2] bpf, arm64: Stack argument fixes patchwork-bot+netdevbpf
2026-06-01 12:22 ` Will Deacon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260528161750.1900674-1-puranjay@kernel.org \
--to=puranjay@kernel$(echo .)org \
--cc=andrii@kernel$(echo .)org \
--cc=ast@kernel$(echo .)org \
--cc=bpf@vger$(echo .)kernel.org \
--cc=catalin.marinas@arm$(echo .)com \
--cc=daniel@iogearbox$(echo .)net \
--cc=eddyz87@gmail$(echo .)com \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
--cc=martin.lau@linux$(echo .)dev \
--cc=memxor@gmail$(echo .)com \
--cc=song@kernel$(echo .)org \
--cc=will@kernel$(echo .)org \
--cc=xukuohai@huaweicloud$(echo .)com \
--cc=yonghong.song@linux$(echo .)dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox