Re: [PATCH net] net: dsa: bcm_sf2: Fix array overrun in bcm_sf2_num_active_ports()

From: patchwork-bot+netdevbpf
Date: Fri Sep 17 2021 - 09:30:12 EST


Hello:

This patch was applied to netdev/net.git (refs/heads/master):

On Thu, 16 Sep 2021 14:33:35 -0700 you wrote:
> After d12e1c464988 ("net: dsa: b53: Set correct number of ports in the
> DSA struct") we stopped setting dsa_switch::num_ports to DSA_MAX_PORTS,
> which created an off by one error between the statically allocated
> bcm_sf2_priv::port_sts array (of size DSA_MAX_PORTS). When
> dsa_is_cpu_port() is used, we end-up accessing an out of bounds member
> and causing a NPD.
>
> [...]

Here is the summary with links:
- [net] net: dsa: bcm_sf2: Fix array overrun in bcm_sf2_num_active_ports()
https://git.kernel.org/netdev/net/c/02319bf15acf

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