diff options
| author | Puranjay Mohan <[email protected]> | 2025-08-01 00:10:08 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2025-08-01 01:23:54 +0000 |
| commit | 710618c760c0a3267221517d78f4cfb65ca7b882 (patch) | |
| tree | dc898c0a4e48e41b508530e364c9d36f2dc4e92f /drivers/fpga/microchip-spi.c | |
| parent | cfi: Move BPF CFI types and helpers to generic code (diff) | |
| download | kernel-710618c760c0a3267221517d78f4cfb65ca7b882.tar.gz kernel-710618c760c0a3267221517d78f4cfb65ca7b882.zip | |
arm64/cfi,bpf: Support kCFI + BPF on arm64
Currently, bpf_dispatcher_*_func() is marked with `__nocfi` therefore
calling BPF programs from this interface doesn't cause CFI warnings.
When BPF programs are called directly from C: from BPF helpers or
struct_ops, CFI warnings are generated.
Implement proper CFI prologues for the BPF programs and callbacks and
drop __nocfi for arm64. Fix the trampoline generation code to emit kCFI
prologue when a struct_ops trampoline is being prepared.
Signed-off-by: Puranjay Mohan <[email protected]>
Co-developed-by: Maxwell Bland <[email protected]>
Signed-off-by: Maxwell Bland <[email protected]>
Co-developed-by: Sami Tolvanen <[email protected]>
Signed-off-by: Sami Tolvanen <[email protected]>
Tested-by: Dao Huang <[email protected]>
Acked-by: Will Deacon <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'drivers/fpga/microchip-spi.c')
0 files changed, 0 insertions, 0 deletions
