Re: [PATCH net] ncsi: Initialize vid in set_one_vid() to handle concurrent VLAN removal

From: patchwork-bot+netdevbpf

Date: Wed Nov 25 2026 - 11:00:18 EST


Hello:

This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Thu, 19 Nov 2026 09:10:09 -0800 you wrote:
> set_one_vid() checks list_empty(&ndp->vlan_vids) before acquiring
> nc->lock and rcu_read_lock(). If ncsi_vlan_rx_kill_vid() removes the
> last VLAN entry in that window, list_for_each_entry_rcu() executes
> zero iterations and leaves vid uninitialized on the stack. The
> subsequent 'if (!vid)' check can then proceed and program stack
> garbage into ncf->vids[index] and an NCSI_PKT_CMD_SVF command packet.
>
> [...]

Here is the summary with links:
- [net] ncsi: Initialize vid in set_one_vid() to handle concurrent VLAN removal
https://git.kernel.org/netdev/net-next/c/e20f88c4f08b

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