Re: [PATCH bpf] nfp: bpf: allow zero-length capabilities

2018-05-09 Thread Daniel Borkmann
On 05/09/2018 04:42 AM, Jakub Kicinski wrote: > Some BPF capabilities carry no value, they simply indicate feature > is present. Our capability parsing loop will exit early if last > capability is zero-length because it's looking for more than 8 bytes > of data (8B is our TLV header length). Allo

[PATCH bpf] nfp: bpf: allow zero-length capabilities

2018-05-08 Thread Jakub Kicinski
Some BPF capabilities carry no value, they simply indicate feature is present. Our capability parsing loop will exit early if last capability is zero-length because it's looking for more than 8 bytes of data (8B is our TLV header length). Allow the last capability to be zero-length. This bug wou