[PATCH v1] arm64: Mitigate Spectre v1 in the BPF interpreter
Alexei Starovoitov
alexei.starovoitov at gmail.com
Wed Nov 18 17:18:03 PST 2026
On Tue, Nov 17, 2026 at 09:23 AM Ryan Roberts <ryan.roberts at arm.com> wrote:
> The arm64 JIT implements BPF_NOSPEC with a speculation barrier, but the
> interpreter calls barrier_nospec(), which falls back to a no-op on
> arm64. Programs executed by the interpreter therefore lack the
> Spectre-v1 barriers assumed by the verifier. Contrary to the code
> comment, kernel-wide SSBD does not provide this protection, since it
> mitigates Spectre v4 rather than Spectre v1.
Nack.
In bpf-next arm64 has no interpreter when the JIT is built.
More information about the linux-arm-kernel
mailing list