netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/4] bridge: vlan: cleanups & fixes (part 3)
@ 2015-10-12 11:41 Nikolay Aleksandrov
  2015-10-12 11:41 ` [PATCH net-next 1/4] bridge: vlan: use proper rcu for the vlgrp member Nikolay Aleksandrov
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Nikolay Aleksandrov @ 2015-10-12 11:41 UTC (permalink / raw)
  To: netdev; +Cc: idosch, shm, Nikolay Aleksandrov, roopa, bridge, davem

From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>

Hi,
Patch 01 converts the vlgrp member to use rcu as it was already used in a
similar way so better to make it official and use all the available RCU
instrumentation. Patch 02 fixes a bug where the vlan_list can be traversed
without rtnl or rcu held which could lead to using freed entries.
I'm not intializing vlgrp to null before kfree_rcu because Ido has a patch
for that which fixes a warning from kasan.
Patch 03 fixes a bug reported by Ido Schimmel about the vlan_flush order
and switchdevs, and patch 04 refactors (br|nbp)_vlan_flush and combines
them into a single function.

Thank you,
 Nik

Nikolay Aleksandrov (4):
  bridge: vlan: use proper rcu for the vlgrp member
  bridge: vlan: use rcu for vlan_list traversal in br_fill_ifinfo
  bridge: vlan: break vlan_flush in two phases to keep old order
  bridge: vlan: combine (br|nbp)_vlan_flush into one

 net/bridge/br_device.c  |   2 +-
 net/bridge/br_forward.c |   6 +--
 net/bridge/br_if.c      |  13 +++--
 net/bridge/br_input.c   |   4 +-
 net/bridge/br_netlink.c |  25 ++++++----
 net/bridge/br_private.h |  43 ++++++++++++-----
 net/bridge/br_vlan.c    | 124 +++++++++++++++++++++++++++---------------------
 7 files changed, 132 insertions(+), 85 deletions(-)

-- 
2.4.3

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

end of thread, other threads:[~2015-10-13  6:41 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-12 11:41 [PATCH net-next 0/4] bridge: vlan: cleanups & fixes (part 3) Nikolay Aleksandrov
2015-10-12 11:41 ` [PATCH net-next 1/4] bridge: vlan: use proper rcu for the vlgrp member Nikolay Aleksandrov
2015-10-12 17:29   ` Ido Schimmel
2015-10-12 11:41 ` [PATCH net-next 2/4] bridge: vlan: use rcu for vlan_list traversal in br_fill_ifinfo Nikolay Aleksandrov
2015-10-12 11:41 ` [PATCH net-next 3/4] bridge: vlan: break vlan_flush in two phases to keep old order Nikolay Aleksandrov
2015-10-12 17:39   ` Ido Schimmel
2015-10-12 17:55     ` Nikolay Aleksandrov
2015-10-12 18:15       ` Ido Schimmel
2015-10-12 18:16       ` Nikolay Aleksandrov
2015-10-12 11:41 ` [PATCH net-next 4/4] bridge: vlan: combine (br|nbp)_vlan_flush into one Nikolay Aleksandrov
2015-10-12 17:51   ` Ido Schimmel
2015-10-12 18:15     ` Vivien Didelot
2015-10-12 18:27       ` Ido Schimmel
2015-10-12 19:49         ` Vivien Didelot
2015-10-13  6:41     ` Scott Feldman

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