Re: [PATCH bpf] bpf: mask speculative out-of-bounds skb helper loads

From: Alexei Starovoitov

Date: Fri Nov 13 2026 - 18:51:06 EST


On Fri, Nov 13, 2026 at 12:15 PM Daniël Trujillo via B4 Relay <devnull+datrujillo.nvidia.com@xxxxxxxxxx> wrote:
> Mask the load address when the converted offset falls outside the
> permitted range. This removed the leakage in the described setup.
> Derive the lower bound from the network and MAC header
> positions. An out-of-bounds transient offset dereferences NULL instead
> of a potential secret.

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.

wont-fix.

pw-bot: cr