Hello: This patch was applied to bpf/bpf-next.git (master) by Daniel Borkmann <daniel@xxxxxxxxxxxxx>: On Thu, 27 Apr 2023 18:36:38 -0700 you wrote: > From: Martin KaFai Lau <martin.lau@xxxxxxxxxx> > > The btf_dump/struct_data selftest is failing with: > test_btf_dump_struct_data:FAIL:unexpected return value dumping fs_context unexpected unexpected return value dumping fs_context: actual -7 != expected 264 > > The reason is in btf_dump_type_data_check_overflow(). It does not use > BTF_MEMBER_BITFIELD_SIZE from the struct's member (btf_member). Instead, > it is using the enum size which is 4. It had been working till the recent > commit 4e04143c869c ("fs_context: drop the unused lsm_flags member") > removed an integer member which also removed the 4 bytes padding at the end > of the fs_context. Missing this 4 bytes padding exposed this bug. > In particular, when btf_dump_type_data_check_overflow() reaches > the member 'phase', -E2BIG is returned. > > [...] Here is the summary with links: - [v2,bpf-next] libbpf: btf_dump_type_data_check_overflow needs to consider BTF_MEMBER_BITFIELD_SIZE https://git.kernel.org/bpf/bpf-next/c/c39028b333f3 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html