Skip to content

net: fix lockdep false positive splat

Taehee Yoo bridge netdev 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 7 repliesIn review
  2. v12 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Remove dupliate Subject

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: core: make bond_get_lowest_level_rcu() genericdrivers/net/bonding/bond_main.c include/linux/netdevice.h net/core/dev.c+46 -442 replies
2/2net: bridge: fix lockdep multicast_lock false positive splatnet/bridge/br_mdb.c net/bridge/br_multicast.c net/bridge/br_multicast_eht.c +1 more+158 -665 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH net v2 0/2] net: fix lockdep false positive splat

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

v2:
- Remove dupliate Subject

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(-)
Signature · 1 line
2.17.1