Re: [PATCH bpf-next] bpf: Simplify check in btf_parse_hdr()

From: patchwork-bot+netdevbpf
Date: Mon Mar 21 2022 - 10:12:22 EST


Hello:

This patch was applied to bpf/bpf-next.git (master)
by Daniel Borkmann <daniel@xxxxxxxxxxxxx>:

On Sun, 20 Mar 2022 15:52:40 +0800 you wrote:
> Replace offsetof(hdr_len) + sizeof(hdr_len) with offsetofend(hdr_len) to
> simplify the check for correctness of btf_data_size in btf_parse_hdr()
>
> Signed-off-by: Yuntao Wang <ytcoode@xxxxxxxxx>
> ---
> kernel/bpf/btf.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)

Here is the summary with links:
- [bpf-next] bpf: Simplify check in btf_parse_hdr()
https://git.kernel.org/bpf/bpf-next/c/583669ab3aed

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html