[PATCH bpf-next 05/13] bpf: compute prog->digest at BPF_PROG_LOAD entry

Alexei Starovoitov alexei.starovoitov at gmail.com
Sat May 23 16:49:11 UTC 2026


On Fri, May 22, 2026 at 4:32 AM KP Singh <kpsingh at kernel.org> wrote:
>
> add_subprog_and_kfunc relocates kfunc CALLs by patching insn->imm
> and src_reg, and bpf_prog_calc_tag has no rule to mask kfunc CALL
> fields.

add_subprog_and_kfunc() doesn't modify the insn stream afaict.
Do you mean that bpf_check_btf_info() resolves CO-RE relos?
but loader prog doesn't use CO-RE.
I don't quite see the point of the patch.



More information about the Linux-security-module-archive mailing list