selftests/bpf: Add more tests for check_max_stack_depth bug
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Mon, 17 Jul 2023 16:15:30 +0000 (21:45 +0530)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 18 Jul 2023 22:21:09 +0000 (15:21 -0700)
commit824adae4530b4db1d06987d8dd31a0adef37044f
tree7c75374670917ca4c75817c5f4807208e6e6096d
parentb5e9ad522c4ccd32d322877515cff8d47ed731b9
selftests/bpf: Add more tests for check_max_stack_depth bug

Another test which now exercies the path of the verifier where it will
explore call chains rooted at the async callback. Without the prior
fixes, this program loads successfully, which is incorrect.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20230717161530.1238-4-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/async_stack_depth.c