bpf: Fix dtor CFI
authorPeter Zijlstra <peterz@infradead.org>
Fri, 15 Dec 2023 09:12:22 +0000 (10:12 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 16 Dec 2023 00:25:55 +0000 (16:25 -0800)
commite4c00339891c074c76f626ac82981963cbba5332
tree4f2231383a2360a9fa0d7e8841343c8c69e2b164
parente9d13b9d2f99ccf7afeab490d97eaa5ac9846598
bpf: Fix dtor CFI

Ensure the various dtor functions match their prototype and retain
their CFI signatures, since they don't have their address taken, they
are prone to not getting CFI, making them impossible to call
indirectly.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20231215092707.799451071@infradead.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/cpumask.c
kernel/bpf/helpers.c
net/bpf/test_run.c