diff options
| author | Ilya Leoshkevich <iii@linux.ibm.com> | 2023-01-28 01:06:28 +0100 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2023-01-28 12:30:08 -0800 |
| commit | 56e1a50483194b2e0ac54849e94cc2b80480895e (patch) | |
| tree | 80b6bdb7d75ceca93eb6a0764856ad916d38be26 /tools/testing/selftests/bpf/prog_tests/prog_tests_framework.c | |
| parent | 98e13848cf43b66b0f32f10011aa398c2bff5ae6 (diff) | |
selftests/bpf: Fix verify_pkcs7_sig on s390x
Use bpf_probe_read_kernel() instead of bpf_probe_read(), which is not
defined on all architectures.
While at it, improve the error handling: do not hide the verifier log,
and check the return values of bpf_probe_read_kernel() and
bpf_copy_from_user().
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Link: https://lore.kernel.org/r/20230128000650.1516334-10-iii@linux.ibm.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_tests_framework.c')
0 files changed, 0 insertions, 0 deletions
