netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/2] Subject: [PATCH net 0/2] net: fix lockdep false positive splat
@ 2021-04-25 15:52 Taehee Yoo
  2021-04-25 15:52 ` [PATCH net 1/2] net: core: make bond_get_lowest_level_rcu() generic Taehee Yoo
  2021-04-25 15:52 ` [PATCH net 2/2] net: bridge: fix lockdep multicast_lock false positive splat Taehee Yoo
  0 siblings, 2 replies; 3+ messages in thread
From: Taehee Yoo @ 2021-04-25 15:52 UTC (permalink / raw)
  To: davem, kuba, dsahern, yoshfuji, netdev, j.vosburgh, vfalico, andy,
	roopa, nikolay, ast, andriin, daniel, weiwan, cong.wang, bjorn,
	herbert, bridge
  Cc: ap420073

This patchset is to fix lockdep false positive splat in multicast part of
the bridge.

When mdb or multicast config is changed, it acquires multicast_lock,
which is a per-interface(bridge) lock.
So, spin_lock_nested() should be used instead of spin_lock() because
interfaces can be recursive.
The spin_lock_nested() needs 'subclass' parameter.

The first patch adds a new helper function, which returns the nest_level
variable under RCU. The nest_level variable can be used as 'subclass'
parameter of spin_lock_nested().
The second patch fix lockdep false positive splat in the bridge multicast
part by using netdev_get_nest_level_rcu().

Taehee Yoo (2):
  net: core: make bond_get_lowest_level_rcu() generic
  net: bridge: fix lockdep multicast_lock false positive splat

 drivers/net/bonding/bond_main.c |  45 +---------
 include/linux/netdevice.h       |   1 +
 net/bridge/br_mdb.c             |  12 +--
 net/bridge/br_multicast.c       | 146 ++++++++++++++++++++------------
 net/bridge/br_multicast_eht.c   |  18 ++--
 net/bridge/br_private.h         |  48 +++++++++++
 net/core/dev.c                  |  44 ++++++++++
 7 files changed, 204 insertions(+), 110 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2021-04-25 15:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-25 15:52 [PATCH net 0/2] Subject: [PATCH net 0/2] net: fix lockdep false positive splat Taehee Yoo
2021-04-25 15:52 ` [PATCH net 1/2] net: core: make bond_get_lowest_level_rcu() generic Taehee Yoo
2021-04-25 15:52 ` [PATCH net 2/2] net: bridge: fix lockdep multicast_lock false positive splat Taehee Yoo

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