aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorEduard Zingerman <[email protected]>2024-08-22 01:01:24 -0700
committerAlexei Starovoitov <[email protected]>2024-08-22 08:00:26 -0700
commit110bbd3a2ed71f3cf4d9438d62f22f591952fc3b (patch)
tree726007f282195c6268baae1ef0da63f4535bff47 /lib/test_fortify/write_overflow-strncpy-src.c
parent3d2786d65aaa954ebd3fcc033ada433e10da21c4 (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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions