linux/net/wireless
Rameshkumar Sundaram 02ee10d2a4 cfg80211: hold bss_lock while updating nontrans_list
[ Upstream commit a5199b5626cd6913cf8776a835bc63d40e0686ad ]

Synchronize additions to nontrans_list of transmitting BSS with
bss_lock to avoid races. Also when cfg80211_add_nontrans_list() fails
__cfg80211_unlink_bss() needs bss_lock to be held (has lockdep assert
on bss_lock). So protect the whole block with bss_lock to avoid
races and warnings. Found during code review.

Fixes: 0b8fb8235b ("cfg80211: Parsing of Multiple BSSID information in scanning")
Signed-off-by: Rameshkumar Sundaram <quic_ramess@quicinc.com>
Link: https://lore.kernel.org/r/1649668071-9370-1-git-send-email-quic_ramess@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-20 09:19:35 +02:00
..
certs
.gitignore
Kconfig
Makefile cfg80211: make certificate generation more robust 2021-06-23 14:41:29 +02:00
ap.c
chan.c
core.c cfg80211: initialize wdev data earlier 2020-11-18 19:20:23 +01:00
core.h nl80211: validate key indexes for cfg80211_registered_device 2021-06-10 13:37:02 +02:00
debugfs.c
debugfs.h
ethtool.c
ibss.c
lib80211.c
lib80211_crypt_ccmp.c
lib80211_crypt_tkip.c
lib80211_crypt_wep.c
mesh.c
mlme.c
nl80211.c nl80211: Update bss channel on channel switch for P2P_CLIENT 2022-03-19 13:40:17 +01:00
nl80211.h
ocb.c
of.c
pmsr.c cfg80211: avoid double free of PMSR request 2021-06-23 14:41:30 +02:00
radiotap.c
rdev-ops.h
reg.c cfg80211: regulatory: Fix inconsistent format argument 2020-11-18 19:20:23 +01:00
reg.h
scan.c cfg80211: hold bss_lock while updating nontrans_list 2022-04-20 09:19:35 +02:00
sme.c cfg80211: remove WARN_ON() in cfg80211_sme_connect 2021-04-14 08:24:18 +02:00
sysfs.c
sysfs.h
trace.c
trace.h
util.c cfg80211: call cfg80211_stop_ap when switch from P2P_GO type 2021-11-26 10:47:22 +01:00
wext-compat.c
wext-compat.h
wext-core.c wext: fix NULL-ptr-dereference with cfg80211's lack of commit() 2021-02-03 23:25:56 +01:00
wext-priv.c
wext-proc.c
wext-sme.c
wext-spy.c wireless: wext-spy: Fix out-of-bounds warning 2021-07-19 08:53:12 +02:00