Re: [PATCH net-next v2] net: dsa: sja1105: flower: reject cross-chip redirect
From: patchwork-bot+netdevbpf
Date: Tue Jun 02 2026 - 17:57:11 EST
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Sat, 30 May 2026 08:39:14 +0800 you wrote:
> dsa_port_from_netdev() may return a valid port from a different switch
> chip. Programming another chip's port index into the local hardware
> causes redirection to the wrong port, or an out-of-bounds access if the
> index exceeds the local chip's port count.
>
> Apply a minimal fix that adds a check to catch this case and adjusts the
> extack message. When cls->common.skip_sw is not set, the operation could
> instead redirect to the upstream port and let the software or upstream
> switch(es) handle the forward, but that is not addressed here.
>
> [...]
Here is the summary with links:
- [net-next,v2] net: dsa: sja1105: flower: reject cross-chip redirect
https://git.kernel.org/netdev/net-next/c/cfa5274a5dc2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html