diff options
author | Johannes Berg <johannes.berg@intel.com> | 2015-03-03 18:02:16 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-04 08:20:22 +0300 |
commit | 2f56f6be47dbc6883e28107edfe2f9f98f4d5a24 (patch) | |
tree | 8f9f700566913bc2e0bc09d00ecee9eac492f31e /include/net/arp.h | |
parent | 71a83a6db6138b9d41d8a0b6b91cb59f6dc4742c (diff) | |
download | linux-2f56f6be47dbc6883e28107edfe2f9f98f4d5a24.tar.xz |
bridge: fix bridge netlink RCU usage
When the STP timer fires, it can call br_ifinfo_notify(),
which in turn ends up in the new br_get_link_af_size().
This function is annotated to be using RTNL locking, which
clearly isn't the case here, and thus lockdep warns:
===============================
[ INFO: suspicious RCU usage. ]
3.19.0+ #569 Not tainted
-------------------------------
net/bridge/br_private.h:204 suspicious rcu_dereference_protected() usage!
Fix this by doing RCU locking here.
Fixes: b7853d73e39b ("bridge: add vlan info to bridge setlink and dellink notification messages")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/arp.h')
0 files changed, 0 insertions, 0 deletions