]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: scan: fix RCU in cfg80211_add_nontrans_list()
authorJohannes Berg <johannes.berg@intel.com>
Thu, 30 Sep 2021 11:11:21 +0000 (13:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Nov 2021 18:46:12 +0000 (19:46 +0100)
commit431cb63afee9109afcd8bcd780e8f6031d4356cf
tree6e9aefe2ea59eac968bf953cdc9704a18a18d986
parent094a4121d19b383f7679fe34172980eb1d7f1415
cfg80211: scan: fix RCU in cfg80211_add_nontrans_list()

commit a2083eeb119fb9307258baea9b7c243ca9a2e0b6 upstream.

The SSID pointer is pointing to RCU protected data, so we
need to have it under rcu_read_lock() for the entire use.
Fix this.

Cc: stable@vger.kernel.org
Fixes: ac2a324087a0 ("cfg80211: Parsing of Multiple BSSID information in scanning")
Link: https://lore.kernel.org/r/20210930131120.6ddfc603aa1d.I2137344c4e2426525b1a8e4ce5fca82f8ecbfe7e@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/wireless/scan.c