netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/2] net: bridge: mcast: add and enforce query interval minimum
@ 2021-12-27 17:21 Nikolay Aleksandrov
  2021-12-27 17:21 ` [PATCH net 1/2] " Nikolay Aleksandrov
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Nikolay Aleksandrov @ 2021-12-27 17:21 UTC (permalink / raw)
  To: netdev
  Cc: eric.dumazet, stable, herbert, roopa, davem, bridge, kuba,
	Nikolay Aleksandrov

Hi,
This set adds and enforces 1 second minimum value for bridge multicast
query and startup query intervals in order to avoid rearming the timers
too often which could lock and crash the host. I doubt anyone is using
such low values or anything lower than 1 second, so it seems like a good
minimum. In order to be compatible if the value is lower then it is
overwritten and a log message is emitted, since we can't return an error
at this point.

Eric, I looked for the syzbot reports in its dashboard but couldn't find
them so I've added you as the reporter. If you point me to the reports
I can respin to give syzbot the credit.

I've prepared a global bridge igmp rate limiting patch but wasn't
sure if it's ok for -net. It adds a static limit of 32k packets per
second, I plan to send it for net-next with added drop counters for
each bridge so it can be easily debugged.

Original report can be seen at:
https://lore.kernel.org/netdev/e8b9ce41-57b9-b6e2-a46a-ff9c791cf0ba@gmail.com/

Thanks,
 Nik

Nikolay Aleksandrov (2):
  net: bridge: mcast: add and enforce query interval minimum
  net: bridge: mcast: add and enforce startup query interval minimum

 net/bridge/br_multicast.c    | 32 ++++++++++++++++++++++++++++++++
 net/bridge/br_netlink.c      |  4 ++--
 net/bridge/br_private.h      |  6 ++++++
 net/bridge/br_sysfs_br.c     |  4 ++--
 net/bridge/br_vlan_options.c |  4 ++--
 5 files changed, 44 insertions(+), 6 deletions(-)

-- 
2.33.1


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

end of thread, other threads:[~2022-01-05 18:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-27 17:21 [PATCH net 0/2] net: bridge: mcast: add and enforce query interval minimum Nikolay Aleksandrov
2021-12-27 17:21 ` [PATCH net 1/2] " Nikolay Aleksandrov
2021-12-28  7:48   ` Greg KH
2022-01-05 18:14   ` Eric Dumazet
2021-12-27 17:21 ` [PATCH net 2/2] net: bridge: mcast: add and enforce startup " Nikolay Aleksandrov
2021-12-28  7:48   ` Greg KH
2021-12-29 22:20 ` [PATCH net 0/2] net: bridge: mcast: add and enforce " patchwork-bot+netdevbpf

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).