selftests/bpf: Add negative tests for new nf_conntrack kfuncs
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Thu, 21 Jul 2022 13:42:44 +0000 (15:42 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 22 Jul 2022 04:03:17 +0000 (21:03 -0700)
commitc6f420ac9d251f694d030ed4ea43262f3f3ef39e
tree1dcb26846f2f391acf949d8dcba33813387a8939
parent6eb7fba007a728e8701be11e93e9da40c95ffad3
selftests/bpf: Add negative tests for new nf_conntrack kfuncs

Test cases we care about and ensure improper usage is caught and
rejected by the verifier.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20220721134245.2450-13-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/bpf_nf.c
tools/testing/selftests/bpf/progs/test_bpf_nf_fail.c [new file with mode: 0644]