]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
selftests/bpf: Add test validating failure on ambiguous relocation value
authorAndrii Nakryiko <andriin@fb.com>
Tue, 18 Aug 2020 22:39:16 +0000 (15:39 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 19 Aug 2020 01:12:46 +0000 (18:12 -0700)
commit00b2e95325f8c9dd56a7dae691b01e321838a557
tree2517471013a88dcb224eb6aabdc7160b409487a5
parent353c788c2054257359114f12827d86f8e3332e10
selftests/bpf: Add test validating failure on ambiguous relocation value

Add test simulating ambiguous field size relocation, while fields themselves
are at the exact same offset.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200818223921.2911963-5-andriin@fb.com
tools/testing/selftests/bpf/prog_tests/core_reloc.c
tools/testing/selftests/bpf/progs/btf__core_reloc_size___err_ambiguous.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/core_reloc_types.h