Re: [PATCH bpf-next v2] selftests/bpf: fix signedness bug in redir_partial()
From: patchwork-bot+netdevbpf
Date: Thu Jun 12 2025 - 13:20:10 EST
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:
On Thu, 12 Jun 2025 16:42:08 +0800 you wrote:
> When xsend() returns -1 (error), the check 'n < sizeof(buf)' incorrectly
> treats it as success due to unsigned promotion. Explicitly check for -1
> first.
>
> Fixes: a4b7193d8efd ("selftests/bpf: Add sockmap test for redirecting partial skb data")
> Signed-off-by: Fushuai Wang <wangfushuai@xxxxxxxxx>
>
> [...]
Here is the summary with links:
- [bpf-next,v2] selftests/bpf: fix signedness bug in redir_partial()
https://git.kernel.org/bpf/bpf-next/c/a59f468c4a02
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html