> When doing BPF filter program conversion, a common way
> to zero a register in single instruction is:
> xor r7,r7
> The BPF validator would not allow this because the value of
> r7 was undefined. But after this operation it always zero.
>
> Signed-off-by: Stephen Hemminger
> ---
> lib/
When doing BPF filter program conversion, a common way
to zero a register in single instruction is:
xor r7,r7
The BPF validator would not allow this because the value of
r7 was undefined. But after this operation it always zero.
Signed-off-by: Stephen Hemminger
---
lib/bpf/bpf_validate.c |
2 matches
Mail list logo