Commit e7f4d390 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Will Deacon
Browse files

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: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20231215092707.451956710@infradead.org


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>

Bug: 452811419
Change-Id: I0540f431e636143373867b1a90c7435c396a9e59
(cherry picked from commit e72d88d1)
Signed-off-by: default avatarwei li <sirius.liwei@honor.corp-partner.google.com>
parent 2f08af26
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment