diff options
| author | Alexei Starovoitov <[email protected]> | 2023-12-16 00:45:49 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2023-12-18 11:00:37 +0000 |
| commit | 0c970ed2f87c058fe3ddeb4d7d8f64f72cf41d7a (patch) | |
| tree | fbc54c4fe55753c3fb80e6832782007a0f6ef186 /tools/lib/bpf/linker.c | |
| parent | selftests/bpf: Temporarily disable dummy_struct_ops test on s390 (diff) | |
| download | kernel-0c970ed2f87c058fe3ddeb4d7d8f64f72cf41d7a.tar.gz kernel-0c970ed2f87c058fe3ddeb4d7d8f64f72cf41d7a.zip | |
s390/bpf: Fix indirect trampoline generation
The func_addr used to be NULL for indirect trampolines used by struct_ops.
Now func_addr is a valid function pointer.
Hence use BPF_TRAMP_F_INDIRECT flag to detect such condition.
Fixes: 2cd3e3772e41 ("x86/cfi,bpf: Fix bpf_struct_ops CFI")
Signed-off-by: Alexei Starovoitov <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Ilya Leoshkevich <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/linker.c')
0 files changed, 0 insertions, 0 deletions
