Re: [PATCH bpf-next v2] selftests/bpf: Fix incorrect array size calculation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello:

This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@xxxxxxxxxx>:

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






[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux