Hello:
This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <[email protected]>:
On Tue, 9 Sep 2025 20:47:04 +0800 you wrote:
> The loop in bench_sockmap_prog_destroy() has two issues:
>
> 1. Using 'sizeof(ctx.fds)' as the loop bound results in the number of
> bytes, not the number of file descriptors, causing the loop to iterate
> far more times than intended.
>
> 2. The condition 'ctx.fds[0] > 0' incorrectly checks only the first fd for
> all iterations, potentially leaving file descriptors unclosed. Change
> it to 'ctx.fds[i] > 0' to check each fd properly.
>
> [...]
Here is the summary with links:
- [bpf-next,v2] selftests/bpf: Fix incorrect array size calculation
https://git.kernel.org/bpf/bpf-next/c/f85981327a90
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html