diff options
| author | 2026-10-19 15:21:46 +0200 | |
|---|---|---|
| committer | 2026-10-19 19:45:03 +0000 | |
| commit | d837f008bfe6ee5511ad908e0e939e197b62f580 (patch) | |
| tree | 337288b726dc3fba71927d72935a615cdc0f66aa /scripts/Makefile.thinlto | |
| parent | libbpf: Keep the fd_array fill index out of bpf_program__clone() (diff) | |
selftests/bpf: Clone a program that calls a module kfunc
Prepare an object whose program calls a kfunc of bpf_testmod and load
the program through bpf_program__clone(), the way veristat loads
programs. The module BTF fd sits in slot 1 of the fd_array of the
object and slot 0 is empty; the clone used to pass the fill index of
that array as fd_array_cnt, which made the kernel resolve slot 0 and
fail the load with "fd 0 is not pointing to valid bpf_map or btf".
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20261019132203.3034698-5-memxor@gmail.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
