Re: [PATCH bpf] bpf: mask speculative out-of-bounds skb helper loads
From: Daniel Trujillo
Date: Fri Nov 13 2026 - 21:50:49 EST
> I suspect you don't have a reproducer and it's all theoretical.
> Because if you had one you would have seen that your patch does nothing.
> convert_bpf_ld_abs() inlines the LD_ABS fast
> path with its own bounds check.
The out-of-bounds read in my reproducer is BPF_LD | BPF_B | BPF_IND.
convert_bpf_ld_abs() emits a call to bpf_skb_load_helper_8() for that
instruction, which this patch hardens.
With the instrumentation described in the commit message, the
reproducer recovered the target bytes on the unpatched kernel. The same
reproducer did not recover them on the patched kernel.
As I noted in my previous reply, this patch does not cover the separate
inline LD_ABS fast path.