[PATCH v4 01/12] bpf: Update the bpf_prog_calc_tag to use SHA256

Alexei Starovoitov alexei.starovoitov at gmail.com
Fri Sep 19 02:19:32 UTC 2025


On Sun, Sep 14, 2025 at 2:51 PM KP Singh <kpsingh at kernel.org> wrote:
>
>  int bpf_prog_calc_tag(struct bpf_prog *fp)
>  {
> -       size_t size = bpf_prog_insn_size(fp);
> -       u8 digest[SHA1_DIGEST_SIZE];
> +       u32 insn_size = bpf_prog_insn_size(fp);
>         struct bpf_insn *dst;
>         bool was_ld_map;
> -       u32 i;
> +       int i, ret = 0;

I undid all of the above extra noise and removed unnecessary 'ret'
while applying the first 7 patches.

Pls address comments and respin.



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