diff options
author | Johannes Berg <johannes.berg@intel.com> | 2015-06-17 14:54:54 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-21 20:06:07 +0300 |
commit | 51f458d9612177f69c2e2c437034ae15f93078e7 (patch) | |
tree | 0240333477ebcabe65d564acc6500ad730a4139e /net/packet | |
parent | 7b48f45797be7c4bdbb772de80efe6bdcd78e81d (diff) | |
download | linux-51f458d9612177f69c2e2c437034ae15f93078e7.tar.xz |
mac80211: fix locking in update_vlan_tailroom_need_count()
Unfortunately, Michal's change to fix AP_VLAN crypto tailroom
caused a locking issue that was reported by lockdep, but only
in a few cases - the issue was a classic ABBA deadlock caused
by taking the mtx after the key_mtx, where normally they're
taken the other way around.
As the key mutex protects the field in question (I'm adding a
few annotations to make that clear) only the iteration needs
to be protected, but we can also iterate the interface list
with just RCU protection while holding the key mutex.
Fixes: f9dca80b98ca ("mac80211: fix AP_VLAN crypto tailroom calculation")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/packet')
0 files changed, 0 insertions, 0 deletions