selftests/bpf: Add testcase for async callback return value failure
authorDavid Vernet <void@manifault.com>
Mon, 9 Oct 2023 16:14:14 +0000 (11:14 -0500)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 9 Oct 2023 21:11:17 +0000 (23:11 +0200)
commit57ddeb86b311ff41925e0fac7b983c097336f1f3
treec4b24142494a35494cd5681726bcdd465ea33e3c
parent829955981c557c7fc7416581c4cd68a8a0c28620
selftests/bpf: Add testcase for async callback return value failure

A previous commit updated the verifier to print an accurate failure
message for when someone specifies a nonzero return value from an async
callback. This adds a testcase for validating that the verifier emits
the correct message in such a case.

Signed-off-by: David Vernet <void@manifault.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20231009161414.235829-2-void@manifault.com
tools/testing/selftests/bpf/prog_tests/timer.c
tools/testing/selftests/bpf/progs/timer_failure.c [new file with mode: 0644]