Re: [PATCH net] cxgb4: allocate the full ethtool filter location array

From: patchwork-bot+netdevbpf

Date: Thu Nov 19 2026 - 19:30:33 EST


Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Tue, 17 Nov 2026 12:06:08 +0300 you wrote:
> The ethtool filter location array stores nentries u32 values, but
> cxgb4_init_ethtool_filters() passes nentries to kvzalloc() as a byte
> count. The insertion and lookup paths allow indices below nentries,
> which can address memory beyond the requested allocation.
>
> Allocate nentries elements with kvcalloc() and the element size.
> The array remains compatible with the existing kvfree() calls.
>
> [...]

Here is the summary with links:
- [net] cxgb4: allocate the full ethtool filter location array
https://git.kernel.org/netdev/net/c/ad2c7240a398

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