Thread (2 messages) 2 messages, 2 authors, 2026-06-02

Re: [PATCH net-next v2] net: dsa: sja1105: flower: reject cross-chip redirect

flat view

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-06-02 21:50:09
Also in: lkml

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski [off-list ref]:

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help