diff options
author | 2019-10-04 15:37:06 +0300 | |
---|---|---|
committer | 2019-10-07 21:35:57 +0200 | |
commit | 461c4c2b4c0731d7452bad4e77c0cdbdcea1804c (patch) | |
tree | 17ec48a63c1aa9d72ed5c50bc1e6abc65caa3afd /net/core/net_namespace.c | |
parent | nl80211: fix memory leak in nl80211_get_ftm_responder_stats (diff) | |
download | wireguard-linux-461c4c2b4c0731d7452bad4e77c0cdbdcea1804c.tar.xz wireguard-linux-461c4c2b4c0731d7452bad4e77c0cdbdcea1804c.zip |
cfg80211: fix a bunch of RCU issues in multi-bssid code
cfg80211_update_notlisted_nontrans() leaves the RCU critical session
too early, while still using nontrans_ssid which is RCU protected. In
addition, it performs a bunch of RCU pointer update operations such
as rcu_access_pointer and rcu_assign_pointer.
The caller, cfg80211_inform_bss_frame_data(), also accesses the RCU
pointer without holding the lock.
Just wrap all of this with bss_lock.
Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/20191004123706.15768-3-luca@coelho.fi
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/core/net_namespace.c')
0 files changed, 0 insertions, 0 deletions