Re: [dpdk-dev] [PATCH] bpf: fix invalid array size

2019-06-27 Thread Thomas Monjalon
21/06/2019 16:26, Konstantin Ananyev: > Array ins_chk in lib/librte_bpf/bpf_validate.c has 255 entries. > So the instruction with opcode == 255 will reading beyond array > boundaries. > For more details please refer to: > https://bugs.dpdk.org/show_bug.cgi?id=283 > > Fixes: 6e12ec4c4d6d ("bpf: add

[dpdk-dev] [PATCH] bpf: fix invalid array size

2019-06-21 Thread Konstantin Ananyev
Array ins_chk in lib/librte_bpf/bpf_validate.c has 255 entries. So the instruction with opcode == 255 will reading beyond array boundaries. For more details please refer to: https://bugs.dpdk.org/show_bug.cgi?id=283 Fixes: 6e12ec4c4d6d ("bpf: add more checks") Cc: sta...@dpdk.org Reported-by: Mic