[PATCH] bpf/validate: fix 32-bit BPF_AND/OR/XOR shift UBs
Thomas Monjalon
thomas at monjalon.net
Thu Oct 15 23:48:10 CEST 2026
25/08/2026 11:55, Marat Khalili:
[...]
> To fix the issue change to subtracting clz64 result from 64 instead of
> instruction width, add tests. Remove no-longer-used opsz argument
> (truncation of inputs to 32 bits is handled by the caller `eval_alu`).
>
> Fixes: 8021917293d0 ("bpf: add extra validation for input BPF program")
> Cc: stable at dpdk.org
>
> Reported-by: Sebti Mouelhi <sebti.mouelhi at huawei.com>
> Signed-off-by: Marat Khalili <marat.khalili at huawei.com>
> Acked-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>
Applied, thanks.
More information about the dev
mailing list