Re: [PATCH v1] arm64: Mitigate Spectre v1 in the BPF interpreter

From: Alexei Starovoitov

Date: Wed Nov 18 2026 - 20:18:10 EST


On Tue, Nov 17, 2026 at 09:23 AM Ryan Roberts <ryan.roberts@xxxxxxx> 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.