Re: [PATCH bpf-next v4 0/3] Fix unaligned enum values in btf_dump
From: patchwork-bot+netdevbpf
Date: Thu Nov 26 2026 - 16:00:27 EST
Hello:
This series was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:
On Thu, 26 Nov 2026 01:12:19 +0000 you wrote:
> btf_dump_get_enum_value() reads unaligned enum values through
> btf_dump_get_bitfield_value() with a zero bit size, which shifts a
> __u64 by 64. Patch 1 copies unaligned enum data into an aligned buffer
> instead, as btf_dump_int_data() does. Patch 2 makes the zero check of
> enum bitfields read only the bytes of the bitfield, as Alexei suggested
> in the v3 review. Patch 3 adds the tests Alexei posted in the v1 review.
>
> [...]
Here is the summary with links:
- [bpf-next,v4,1/3] libbpf: Fix sign extension of unaligned enums in btf_dump_get_enum_value()
https://git.kernel.org/bpf/bpf-next/c/74ff49675ee3
- [bpf-next,v4,2/3] libbpf: Fix zero detection of enum bitfields in BTF dumper
https://git.kernel.org/bpf/bpf-next/c/3a3224cd0866
- [bpf-next,v4,3/3] selftests/bpf: Dump unaligned enums and a zeroed fs_context
https://git.kernel.org/bpf/bpf-next/c/dda6568362cf
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html