Hello:
This series was applied to bpf/bpf.git (master)
by Alexei Starovoitov [off-list ref]:
On Mon, 7 Sep 2026 22:06:22 +0900 you wrote:
The arm64 JIT does not set BPF_REG_FP in the prologue of an exception
callback, so the callback runs with whatever x25 held when bpf_throw()
was called. A callback that materializes the register, for instance to
pass the address of a local variable to a helper, then works on the
frame of the subprogram that threw.
Patch 1 sets ctx->fp_used on that path, the same fix commit b114fcee766d
("bpf, arm64: Fix fp initialization for exception boundary") made for
the exception boundary. Patch 2 adds a selftest that reaches the case.
[...]
Here is the summary with links:
- [bpf,v3,1/2] bpf, arm64: set up the frame pointer for the exception callback
https://git.kernel.org/bpf/bpf/c/ef1fb82f1218
- [bpf,v3,2/2] selftests/bpf: cover the exception callback using its own BPF stack
https://git.kernel.org/bpf/bpf/c/26a43a5f8c31
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html