selftests/bpf: validate .bss section bigger than 8MB is possible now
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 15 Jul 2022 05:31:46 +0000 (22:31 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 19 Jul 2022 16:45:34 +0000 (09:45 -0700)
commit24316461200502aa5feddaa72dcbb8059503a528
tree2b5d98df04a55fd1cdbb67eff0355c3fb5a25cb4
parent63b8ce77b15ebf69c4b0ef4b87451e2626aa3c43
selftests/bpf: validate .bss section bigger than 8MB is possible now

Add a simple big 16MB array and validate access to the very last byte of
it to make sure that kernel supports > KMALLOC_MAX_SIZE value_size for
BPF array maps (which are backing .bss in this case).

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20220715053146.1291891-5-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/skeleton.c
tools/testing/selftests/bpf/progs/test_skeleton.c