]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: Fix possible Spectre-v1 for NL80211_TXRATE_HT
authorMasashi Honma <masashi.honma@gmail.com>
Tue, 25 Sep 2018 02:15:00 +0000 (11:15 +0900)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 26 Sep 2018 09:17:32 +0000 (11:17 +0200)
commit5ff393f9a41e5438f59a2b936285247f3c3ffcaf
tree1755afa4e983239ef5128b4683daea13efb49100
parent35360ac3ce388041728f3a1715f2b0722292e1c1
nl80211: Fix possible Spectre-v1 for NL80211_TXRATE_HT

Use array_index_nospec() to sanitize ridx with respect to speculation.

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c