]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit776d3c8043b77b3f12c789f2721693e85babb28c
tree2b5d98df04a55fd1cdbb67eff0355c3fb5a25cb4
parentc362c09b9831f5beb269b8116dfb1c34c33e7f12
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