On Thu, Apr 18, 2019 at 2:34 PM Martin KaFai Lau wrote:
>
> map_fds[16] is the last one index-ed by fixup_map_array_small.
> Hence, the MAX_NR_MAPS should be 17 instead.
>
> Fixes: fb2abb73e575 ("bpf, selftest: test {rd, wr}only flags and direct value
> access")
> Signed-off-by: Martin KaFai Lau
On 4/18/19 2:33 PM, Martin KaFai Lau wrote:
> map_fds[16] is the last one index-ed by fixup_map_array_small.
> Hence, the MAX_NR_MAPS should be 17 instead.
>
> Fixes: fb2abb73e575 ("bpf, selftest: test {rd, wr}only flags and direct value
> access")
> Signed-off-by: Martin KaFai Lau
Acked-by:
map_fds[16] is the last one index-ed by fixup_map_array_small.
Hence, the MAX_NR_MAPS should be 17 instead.
Fixes: fb2abb73e575 ("bpf, selftest: test {rd, wr}only flags and direct value
access")
Signed-off-by: Martin KaFai Lau
---
tools/testing/selftests/bpf/test_verifier.c | 2 +-
1 file chang