]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Add tests for iter arg check
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Tue, 3 Dec 2024 00:02:38 +0000 (16:02 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 3 Dec 2024 01:47:56 +0000 (17:47 -0800)
commit7f71197001e35f46aca97204986edf9301f8dd09
treee8560c8a31d366717a26eab0ff8132aa3f505694
parent12659d28615d606b36e382f4de2dd05550d202af
selftests/bpf: Add tests for iter arg check

Add selftests to cover argument type check for iterator kfuncs, and
cover all three kinds (new, next, destroy). Without the fix in the
previous patch, the selftest would not cause a verifier error.

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