UPSTREAM: x86/cfi,bpf: Fix bpf_callback_t CFI
Where the main BPF program is expected to match bpf_func_t,
sub-programs are expected to match bpf_callback_t.
This fixes things like:
tools/testing/selftests/bpf/progs/bloom_filter_bench.c:
bpf_for_each_map_elem(&array_map, bloom_callback, &data, 0);
Signed-off-by:
Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20231215092707.451956710@infradead.org
Signed-off-by:
Alexei Starovoitov <ast@kernel.org>
Bug: 452811419
Change-Id: I0540f431e636143373867b1a90c7435c396a9e59
(cherry picked from commit e72d88d1)
Signed-off-by:
wei li <sirius.liwei@honor.corp-partner.google.com>
Loading
Please sign in to comment