]> 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)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 1 Oct 2021 09:02:27 +0000 (11:02 +0200)
commit5402ae171d8b66f06c8f971b4744af6313da3bd7
tree75f565f3b331c4cb56a88b35557ca81ef67d2fc6
parentdb65e096178c8dc6955d0be56c54cf6550389c4c
cfg80211: scan: fix RCU in cfg80211_add_nontrans_list()

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: b397b5577905 ("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>
net/wireless/scan.c