Re: [PATCH bpf-next v2 0/7] bpf, arm64: __arena kfunc and struct_ops arguments

[email protected]
Newsgroups org.kernel.vger.bpf
Message-ID <178668061664.3161817.18426400734023554692.git-patchwork-notify@kernel.org>
Hello:

This series was applied to bpf/bpf-next.git (master)
by Kumar Kartikeya Dwivedi <[email protected]>:

On Thu, 13 Aug 2026 12:03:47 -0700 you wrote:
> The x86-64 JIT recently gained support for the __arena and
> __arena__nullable argument suffixes on kfuncs and struct_ops stubs. This
> adds the arm64 side and flips bpf_jit_supports_arena_args() on, so the
> verifier stops rejecting these programs on arm64.
> 
> Patch 1 is an independent fix. save_args() reads stack-passed arguments
> at FP + 32, which only holds when the trampoline is entered through the
> fentry call and two frame records are pushed. A struct_ops trampoline is
> entered via blr and pushes one frame fewer, so its stack arguments start
> at FP + 16 and every one of them was read two slots off. No struct_ops
> member passed arguments on the stack until the test added by commit
> 2d4de9a493a0, which is why this went unnoticed. It carries a Fixes tag
> and can be taken separately; note that the test covering it only runs on
> arm64 once the rest of this series lands.
> 
> [...]

Here is the summary with links:
  - [bpf-next,v2,1/7] bpf, arm64: Fix stack-passed arguments for indirect trampolines
    https://git.kernel.org/bpf/bpf-next/c/50de1c47a41d
  - [bpf-next,v2,2/7] arm64: insn: Add encoder for ADD/SUB (extended register)
    https://git.kernel.org/bpf/bpf-next/c/f4adb983ef3d
  - [bpf-next,v2,3/7] bpf, arm64: JIT __arena kfunc argument rebasing
    https://git.kernel.org/bpf/bpf-next/c/760cb40cfd6a
  - [bpf-next,v2,4/7] bpf, arm64: Convert struct_ops arena arguments in the trampoline
    https://git.kernel.org/bpf/bpf-next/c/bb5bad6a78b6
  - [bpf-next,v2,5/7] selftests/bpf: Add arm64 JIT-sequence tests for __arena kfunc arguments
    https://git.kernel.org/bpf/bpf-next/c/1c5bc60f957d
  - [bpf-next,v2,6/7] selftests/bpf: Enable __arena argument tests on arm64
    https://git.kernel.org/bpf/bpf-next/c/05a3575f225c
  - [bpf-next,v2,7/7] selftests/bpf: Test a multi-slot argument before a struct_ops arena argument
    https://git.kernel.org/bpf/bpf-next/c/197d34b16943

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.