Skip to content

Commit 849f257

Browse files
iamkafaiAlexei Starovoitov
authored andcommitted
bpf: Increase MAX_NR_MAPS to 17 in test_verifier.c
map_fds[16] is the last one index-ed by fixup_map_array_small. Hence, the MAX_NR_MAPS should be 17 instead. Fixes: fb2abb7 ("bpf, selftest: test {rd, wr}only flags and direct value access") Signed-off-by: Martin KaFai Lau <kafai@fb.com> Acked-by: Yonghong Song <yhs@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
1 parent 5de35e3 commit 849f257

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tools/testing/selftests/bpf/test_verifier.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
#define MAX_INSNS BPF_MAXINSNS
5353
#define MAX_TEST_INSNS 1000000
5454
#define MAX_FIXUPS 8
55-
#define MAX_NR_MAPS 16
55+
#define MAX_NR_MAPS 17
5656
#define MAX_TEST_RUNS 8
5757
#define POINTER_VALUE 0xcafe4all
5858
#define TEST_DATA_LEN 64

0 commit comments

Comments
 (0)