Peter Zijlstra 2cd3e3772e x86/cfi,bpf: Fix bpf_struct_ops CFI
BPF struct_ops uses __arch_prepare_bpf_trampoline() to write
trampolines for indirect function calls. These tramplines much have
matching CFI.

In order to obtain the correct CFI hash for the various methods, add a
matching structure that contains stub functions, the compiler will
generate correct CFI which we can pilfer for the trampolines.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20231215092707.566977112@infradead.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2023-12-15 16:25:55 -08:00
..
2023-10-23 08:45:25 +01:00
2023-10-01 19:09:54 +01:00
2023-12-15 16:25:55 -08:00
2023-12-13 16:16:40 -08:00
2023-08-29 17:39:15 -07:00
2023-12-15 16:25:55 -08:00
2023-06-24 15:41:46 -07:00
2023-10-01 19:09:54 +01:00
2023-11-08 13:39:16 -08:00
2023-10-01 19:09:54 +01:00
2023-10-11 10:39:01 +01:00