Re: [PATCH net-next v2] net: mana: hardening: Reject zero max_num_queues from MANA_QUERY_VPORT_CONFIG
From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-05-05 02:31:08
Also in:
linux-hyperv, lkml
From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-05-05 02:31:08
Also in:
linux-hyperv, lkml
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski [off-list ref]: On Thu, 30 Apr 2026 01:56:31 -0700 you wrote:
As a part of MANA hardening for CVM, validate that max_num_sq and max_num_rq returned by MANA_QUERY_VPORT_CONFIG are not zero. These values flow into apc->num_queues, which is used as an allocation count and loop bound. A zero value would result in zero-size allocations and incorrect driver behavior. Return -EPROTO if either value is zero. [...]
Here is the summary with links:
- [net-next,v2] net: mana: hardening: Reject zero max_num_queues from MANA_QUERY_VPORT_CONFIG
https://git.kernel.org/netdev/net-next/c/93ca1575dd1f
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html