diff options
| author | Andrii Nakryiko <[email protected]> | 2020-08-20 06:14:08 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2020-08-20 14:45:09 +0000 |
| commit | 9b2f6fecf3b77d2457a13f77a563c07304f15775 (patch) | |
| tree | afc42c68923d9e671ccd9384ef1a0d52ecbf2d2b /tools/testing/selftests/bpf/prog_tests/sockmap_basic.c | |
| parent | Merge branch 'bpf-umd-debug' (diff) | |
| download | kernel-9b2f6fecf3b77d2457a13f77a563c07304f15775.tar.gz kernel-9b2f6fecf3b77d2457a13f77a563c07304f15775.zip | |
libbpf: Fix detection of BPF helper call instruction
BPF_CALL | BPF_JMP32 is explicitly not allowed by verifier for BPF helper
calls, so don't detect it as a valid call. Also drop the check on func_id
pointer, as it's currently always non-null.
Fixes: 109cea5a594f ("libbpf: Sanitize BPF program code for bpf_probe_read_{kernel, user}[_str]")
Reported-by: Yonghong Song <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sockmap_basic.c')
0 files changed, 0 insertions, 0 deletions
