diff options
author | 2023-04-21 02:23:17 +0300 | |
---|---|---|
committer | 2023-04-20 16:49:16 -0700 | |
commit | cbb110bc6672f785cab2cb308e9cfefee07af861 (patch) | |
tree | 92e34316da9c2c9e92c8fb643ff5c488ae47602e /kernel/bpf/helpers.c | |
parent | selftests/bpf: add pre bpf_prog_test_run_opts() callback for test_loader (diff) | |
download | linux-rng-cbb110bc6672f785cab2cb308e9cfefee07af861.tar.xz linux-rng-cbb110bc6672f785cab2cb308e9cfefee07af861.zip |
selftests/bpf: populate map_array_ro map for verifier_array_access test
Two test cases:
- "valid read map access into a read-only array 1" and
- "valid read map access into a read-only array 2"
Expect that map_array_ro map is filled with mock data. This logic was
not taken into acount during initial test conversion.
This commit modifies prog_tests/verifier.c entry point for this test
to fill the map.
Fixes: a3c830ae0209 ("selftests/bpf: verifier/array_access.c converted to inline assembly")
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20230420232317.2181776-5-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf/helpers.c')
0 files changed, 0 insertions, 0 deletions