]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, selftests: Use bpf_probe_read_kernel
authorIlya Leoshkevich <iii@linux.ibm.com>
Tue, 2 Jun 2020 17:44:48 +0000 (19:44 +0200)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 2 Jun 2020 19:04:04 +0000 (21:04 +0200)
commit61d772801b3fe80979e7b409d2288396212ba025
tree9b6733f6283409fe25794a4835dc2e13b9c4d25a
parentc24638d2349b61e9a83786b5db26473d489cbb3b
bpf, selftests: Use bpf_probe_read_kernel

Since commit d3ddf3622fc7 ("bpf: Restrict bpf_probe_read{, str}() only to
archs where they work") 44 verifier tests fail on s390 due to not having
bpf_probe_read anymore. Fix by using bpf_probe_read_kernel.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200602174448.2501214-1-iii@linux.ibm.com
tools/testing/selftests/bpf/verifier/const_or.c
tools/testing/selftests/bpf/verifier/helper_access_var_len.c
tools/testing/selftests/bpf/verifier/helper_value_access.c
tools/testing/selftests/bpf/verifier/precise.c