> commit 2f59d25442273a3dd4e46bd4a77ca4bbf1633e3c
> Author: Thiébaud Weksteen <[email protected]>
> Date:   Fri Sep 4 13:19:12 2026 +1000
>
>     bpftool: Reject non-autoload programs for light skeletons
>
>     When generating a light skeleton (bpftool gen skeleton -L), there is no
>     libbpf runtime object or bpf_program__set_autoload() API available to
>     enable/disable the autoloading of programs. If a BPF program in the
>     object has autoload disabled (e.g. via SEC("?...")), bpf_object__load()
>     silently skips loading it. bpftool still generates struct bpf_prog_desc
>     fields and attach functions in the light skeleton header, leaving
>     skel->progs.<name>.prog_fd uninitialized (0).
>
>     Explicitly reject non-autoloaded programs when use_loader is true with
>     an error message, preventing the generation of broken light skeleton
>     headers.
>
>     Signed-off-by: Thiébaud Weksteen <[email protected]>

This looks like a bug fix for light skeleton generation. Should this
include a Fixes: tag?

  Fixes: d510296d331a ("bpftool: Use syscall/loader program in \"prog load\" 
and \"gen skeleton\" command.")


---
AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md

CI run summary: https://github.com/kernel-patches/bpf/actions/runs/33833567672

Reply via email to