]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: take RCU read lock when calling ieee80211_bss_get_ie()
authorDominik Brodowski <linux@dominikbrodowski.net>
Mon, 15 Jan 2018 07:12:15 +0000 (08:12 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 15 Jan 2018 08:15:04 +0000 (09:15 +0100)
commit48649cede23bb18523a2625da18d3131969d3e04
tree97ecb540ce522008ac03bc7840ee2da0b9c0a5a3
parentea1361e5a3d7d354b4dbdcab9bd4d7688fa04d55
nl80211: take RCU read lock when calling ieee80211_bss_get_ie()

As ieee80211_bss_get_ie() derefences an RCU to return ssid_ie, both
the call to this function and any operation on this variable need
protection by the RCU read lock.

Fixes: f90aa01dc33f ("nl80211: don't expose wdev->ssid for most interfaces")
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c