Thread (5 messages) 5 messages, 2 authors, 28d ago

Re: [PATCH bpf v3 0/2] bpf, arm64: fix the exception callback's frame pointer

flat view

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-09-14 05:01:20
Also in: bpf, linux-kselftest, lkml

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


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help