netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Patch fixing STP if bridge in non-default namespace.
@ 2023-07-10 13:35 Harry Coin
  2023-07-11  3:22 ` Kuniyuki Iwashima
  0 siblings, 1 reply; 16+ messages in thread
From: Harry Coin @ 2023-07-10 13:35 UTC (permalink / raw)
  To: netdev

Notice without access to link-level multicast address 01:80:C2:00:00:00, 
the STP loop-avoidance feature of bridges fails silently, leading to 
packet storms if loops exist in the related L2.  The Linux kernel's 
latest code silently drops BPDU STP packets if the bridge is in a 
non-default namespace.

The current llc_rcv.c around line 166 in net/llc/llc_input.c  has

        if (!net_eq(dev_net(dev), &init_net))
                goto drop;

Which, when commented out, fixes this bug.  A search on &init_net may 
reveal many similar artifacts left over from the early days of namespace 
implementation.

Thanks for all you do!


-- 

^ permalink raw reply	[flat|nested] 16+ messages in thread
* RE: Re: llc needs namespace awareness asap, was Re: Patch fixing STP if bridge in non-default namespace.
@ 2023-08-02  3:45 Hasenbosch, Samuel J
  2023-08-02  3:50 ` Kuniyuki Iwashima
  0 siblings, 1 reply; 16+ messages in thread
From: Hasenbosch, Samuel J @ 2023-08-02  3:45 UTC (permalink / raw)
  To: stephen@networkplumber.org
  Cc: andrew@lunn.ch, hcoin@quietfountain.com, kuniyu@amazon.com,
	netdev@vger.kernel.org


Forwarding related issue:

https://lore.kernel.org/netdev/cf3001de-4ee2-45f2-83d3-3c878b85d628@free.fr/

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-08-02  3:51 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-10 13:35 Patch fixing STP if bridge in non-default namespace Harry Coin
2023-07-11  3:22 ` Kuniyuki Iwashima
2023-07-11 17:08   ` llc needs namespace awareness asap, was " Harry Coin
2023-07-11 18:32     ` Kuniyuki Iwashima
2023-07-11 20:22       ` Harry Coin
2023-07-11 20:44         ` Andrew Lunn
2023-07-11 21:40           ` Harry Coin
2023-07-11 21:51             ` Kuniyuki Iwashima
2023-07-11 22:44               ` Harry Coin
2023-07-11 22:56                 ` Kuniyuki Iwashima
     [not found]               ` <b01e5af6-e397-486d-3428-6fa30a919042@quietfountain.com>
2023-07-12  0:55                 ` Andrew Lunn
2023-07-12  3:06                   ` Harry Coin
2023-07-13 22:37                     ` Stephen Hemminger
2023-07-12  9:44               ` Petr Machata
2023-07-12  0:49           ` Jakub Kicinski
  -- strict thread matches above, loose matches on Subject: below --
2023-08-02  3:45 Hasenbosch, Samuel J
2023-08-02  3:50 ` Kuniyuki Iwashima

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).