selftests/bpf: Add tests for reference state fixes for callbacks
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Tue, 23 Aug 2022 01:32:26 +0000 (03:32 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 25 Aug 2022 00:54:40 +0000 (17:54 -0700)
commit35f14dbd2fc6619dea8ac9eea18976378b18450b
treea76776ce490c4efa99ea8a11f2ce554115fce960
parent9d9d00ac29d0ef7ce426964de46fa6b380357d0a
selftests/bpf: Add tests for reference state fixes for callbacks

These are regression tests to ensure we don't end up in invalid runtime
state for helpers that execute callbacks multiple times. It exercises
the fixes to verifier callback handling for reference state in previous
patches.

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