diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2024-08-08 16:22:28 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-08-21 10:37:52 -0700 |
commit | 496ddd19a0fad22f250fc7a7b7a8000155418934 (patch) | |
tree | 17a266c5749d9adbb3015ae4640bfa15a9975ce0 /tools/testing/selftests/bpf/prog_tests/async_stack_depth.c | |
parent | 01ac89d0a5c2332be25a1b7ef707bad9ddb9fc20 (diff) |
bpf: extract iterator argument type and name validation logic
Verifier enforces that all iterator structs are named `bpf_iter_<name>`
and that whenever iterator is passed to a kfunc it's passed as a valid PTR ->
STRUCT chain (with potentially const modifiers in between).
We'll need this check for upcoming changes, so instead of duplicating
the logic, extract it into a helper function.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20240808232230.2848712-2-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/async_stack_depth.c')
0 files changed, 0 insertions, 0 deletions