Hello:
This series was applied to bpf/bpf.git (master)
by Alexei Starovoitov <[email protected]>:
On Thu, 10 Sep 2026 20:22:55 +0800 you wrote:
> When an access goes past the struct and the last member is a flexible
> array, btf_struct_walk() folds the offset back into a single element with
> (off - moff) % t->size, but never checks that the element type has a size.
>
> BTF takes an empty struct, so this in program BTF
>
> /* event could be empty */
> struct event {
> #ifdef HAVE_TIMESTAMP
> __u64 ts;
> #endif
> };
>
> [...]
Here is the summary with links:
- [bpf,1/2] bpf: Fix divide-by-zero in btf_struct_walk()
https://git.kernel.org/bpf/bpf/c/b0b3dc665296
- [bpf,2/2] selftests/bpf: Test BTF walk into a flexible array of zero-sized
elements
https://git.kernel.org/bpf/bpf/c/f77d21245710
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html