Re: [PATCH net v10 2/4] net: hsr: refuse forwarding devices as HSR/PRP ports

From: Paolo Abeni

Date: Mon Nov 23 2026 - 08:47:36 EST


On 11/20/26 22:30, Xin Xie wrote:
On 20/11/2026 03:22, netdev-bot+sashiko@xxxxxxxxxx wrote:
Can a plain veth slave still re-enter the xmit path of its own HSR master?

Yes. The redirect case exists without the patch, and the commit message
lists it as not covered. seqnr_lock has been held across the port
transmit since 06afd2c31d33 and 430d67bdcb04. The patch refuses port
types that make no sense as HSR/PRP ports, which covers the syzbot
topology, as Sebastian suggested [1].
What about explicitly detecting the AA deadlock maintaining a per cpu
status?

if (<percpu_hst_xmitting>)
// warn_on_once && free skb && return

<set percpu_hst_xmitting>
spin_lock_bh(&hsr->seqnr_lock);
hsr_forward_skb(skb, master);
spin_unlock_bh(&hsr->seqnr_lock);
<clear percpu_hst_xmitting>

/P