diff options
author | Eduard Zingerman <eddyz87@gmail.com> | 2024-08-22 01:01:24 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-08-22 08:00:26 -0700 |
commit | 110bbd3a2ed71f3cf4d9438d62f22f591952fc3b (patch) | |
tree | 726007f282195c6268baae1ef0da63f4535bff47 /tools/testing/selftests/bpf/prog_tests/access_variable_array.c | |
parent | 3d2786d65aaa954ebd3fcc033ada433e10da21c4 (diff) |
selftests/bpf: test for malformed BPF_CORE_TYPE_ID_LOCAL relocation
Check that verifier rejects BPF program containing relocation
pointing to non-existent BTF type.
To force relocation resolution on kernel side test case uses
bpf_attr->core_relos field. This field is not exposed by libbpf,
so directly do BPF system call in the test.
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20240822080124.2995724-3-eddyz87@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/access_variable_array.c')
0 files changed, 0 insertions, 0 deletions