diff options
author | Kees Cook <[email protected]> | 2021-09-28 16:09:46 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2021-09-28 16:27:18 -0700 |
commit | 102acbacfd9a96d101abd96d1a7a5bf92b7c3e8e (patch) | |
tree | 18cfa723e40dbe24928faf0299bf0b90e8df9f43 /tools/perf/scripts/python/flamegraph.py | |
parent | 3d717fad5081b8e3bda76d86907fad95398cbde8 (diff) |
bpf: Replace callers of BPF_CAST_CALL with proper function typedef
In order to keep ahead of cases in the kernel where Control Flow
Integrity (CFI) may trip over function call casts, enabling
-Wcast-function-type is helpful. To that end, BPF_CAST_CALL causes
various warnings and is one of the last places in the kernel
triggering this warning.
For actual function calls, replace BPF_CAST_CALL() with a typedef, which
captures the same details about the given function pointers.
This change results in no object code difference.
Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Acked-by: Gustavo A. R. Silva <[email protected]>
Link: https://github.com/KSPP/linux/issues/20
Link: https://lore.kernel.org/lkml/CAEf4Bzb46=-J5Fxc3mMZ8JQPtK1uoE0q6+g6WPz53Cvx=CBEhw@mail.gmail.com
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions