diff options
author | Roberto Sassu <roberto.sassu@huawei.com> | 2022-09-20 09:59:51 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-09-21 17:33:43 -0700 |
commit | b94fa9f9dcf99730eabd8febc4c95e44342bfb59 (patch) | |
tree | 72f03eef8072c708925a60dcf33e1b6394586121 /tools/testing/selftests/bpf/prog_tests/load_bytes_relative.c | |
parent | selftests/bpf: Add test for bpf_verify_pkcs7_signature() kfunc (diff) | |
download | linux-dev-b94fa9f9dcf99730eabd8febc4c95e44342bfb59.tar.xz linux-dev-b94fa9f9dcf99730eabd8febc4c95e44342bfb59.zip |
selftests/bpf: Add tests for dynamic pointers parameters in kfuncs
Add tests to ensure that only supported dynamic pointer types are accepted,
that the passed argument is actually a dynamic pointer, that the passed
argument is a pointer to the stack, and that bpf_verify_pkcs7_signature()
correctly handles dynamic pointers with data set to NULL.
The tests are currently in the deny list for s390x (JIT does not support
calling kernel function).
Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20220920075951.929132-14-roberto.sassu@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/load_bytes_relative.c')
0 files changed, 0 insertions, 0 deletions