Re: [PATCH bpf] bpf: Validate BTF repeated field counts before expansion
From: Kumar Kartikeya Dwivedi
Date: Sun Jun 07 2026 - 07:08:41 EST
On Sun Jun 7, 2026 at 12:11 PM CEST, Paul Moses wrote:
>>
>> Do you have an example where this actually occurred in practice?
>>
>
> Yes.
>
Right, I know you can get a splat. But how did you stumble on it? Is this BTF
produced during compilation, or hand-crafted case meant to exercise the limits
such that we get the splat? If you have a small reproducer, it might make sense
to include it as a selftest as well.
> [...]
>
> Also, I still haven't made the connection between the CI failure and
> my patch. I produced what looks like the tcg variation of the same
> failure as a oneoff while testing an (functionally) unpatched kernel.
> I'm not even sure it's the kernel at all and not some weirdness
> between clang and qemu. Seems low frequency intermittent from what
> I've seen so far. Any ideas appreciated.
>
It is unrelated.