[PATCH v3] arm64: bpf: Force 8-byte alignment for JIT buffer to prevent atomic tearing

patchwork-bot+netdevbpf at kernel.org patchwork-bot+netdevbpf at kernel.org
Thu Feb 26 11:30:19 PST 2026


Hello:

This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast at kernel.org>:

On Thu, 26 Feb 2026 07:55:25 +0000 you wrote:
> struct bpf_plt contains a u64 target field. Currently, the BPF JIT
> allocator requests an alignment of 4 bytes (sizeof(u32)) for the JIT
> buffer.
> 
> Because the base address of the JIT buffer can be 4-byte aligned (e.g.,
> ending in 0x4 or 0xc), the relative padding logic in build_plt() fails
> to ensure that target lands on an 8-byte boundary.
> 
> [...]

Here is the summary with links:
  - [v3] arm64: bpf: Force 8-byte alignment for JIT buffer to prevent atomic tearing
    https://git.kernel.org/bpf/bpf/c/ef06fd16d487

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html





More information about the linux-arm-kernel mailing list