]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit7a94b8c2eee7083ddccd0515830f8c81a8e44b1a
tree97ecb540ce522008ac03bc7840ee2da0b9c0a5a3
parenta48a52b7bea81c046fe1c1288f84d0eba214cba0
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: 44905265bc15 ("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