selftests/bpf: Negative test case for tail call map
authorPaul Chaignon <paul.chaignon@gmail.com>
Mon, 7 Jul 2025 11:50:35 +0000 (13:50 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 7 Jul 2025 15:46:13 +0000 (08:46 -0700)
commit192e3aa145292bad69f1d702ab21755ae07dda40
treeaf23fb81d344ce43847feec9d81e0ac28761f4ce
parentdf4b1eebd8d1985d2016bc02fe3ea27c2e628e56
selftests/bpf: Negative test case for tail call map

This patch adds a negative test case for the following verifier error.

    expected prog array map for tail call

Acked-by: Yonghong Song <yonghong.song@linux.dev>
Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/r/aGu0i1X_jII-3aFa@mail.gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/verifier.c
tools/testing/selftests/bpf/progs/verifier_tailcall.c [new file with mode: 0644]