Re: [PATCH bpf] bpf: btf: fix truncated last_member_type_id in btf_struct_resolve

From: Lorenz Bauer
Date: Sat Sep 10 2022 - 07:03:16 EST


On Fri, 9 Sep 2022, at 19:17, Martin KaFai Lau wrote:
>
> The fix tag should be
>
> Fixes: a0791f0df7d2 ("bpf: fix BTF limits")

Ah, thanks very much! Sent a v2.

> The change makes sense.
>
> The kernel's vmlinux and module btf parsing doesn't go through this
> resolve check though. Are you trying to __sys_bpf(BPF_BTF_LOAD) the btf
> from the vmlinux file into the kernel ?

Yes, with the twist that the BTF was serialised by github.com/cilium/ebpf instead of libbpf.