selftests/bpf: Add access_inner_map selftest
authorRhys Rustad-Elliott <me@rhysre.net>
Fri, 2 Jun 2023 19:02:24 +0000 (19:02 +0000)
committerMartin KaFai Lau <martin.lau@kernel.org>
Sat, 3 Jun 2023 00:04:22 +0000 (17:04 -0700)
commit1022b67b89ce5b92906fec6447f02acf6ba018e4
tree36f99c6b5dc4e6de25c5bd4882fee04eb6fe82b4
parentcba41bb78d70aad98d8e61e019fd48c561f7f396
selftests/bpf: Add access_inner_map selftest

Add a selftest that accesses a BPF_MAP_TYPE_ARRAY (at a nonzero index)
nested within a BPF_MAP_TYPE_HASH_OF_MAPS to flex a previously buggy
case.

Signed-off-by: Rhys Rustad-Elliott <me@rhysre.net>
Link: https://lore.kernel.org/r/20230602190110.47068-3-me@rhysre.net
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
tools/testing/selftests/bpf/prog_tests/inner_array_lookup.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/inner_array_lookup.c [new file with mode: 0644]