commit | 1222a16014888ed9733c11e221730d4a8196222b | [log] [tgz] |
---|---|---|
author | Masashi Honma <masashi.honma@gmail.com> | Tue Sep 25 11:15:01 2018 +0900 |
committer | Johannes Berg <johannes.berg@intel.com> | Thu Sep 27 11:44:44 2018 +0200 |
tree | 996fc5f62a229ad0d726fa868eecf21cc4ff7ba9 | |
parent | 28ef8b49a338dc1844e86b7954cfffc7dfa2660a [diff] |
nl80211: Fix possible Spectre-v1 for CQM RSSI thresholds Use array_index_nospec() to sanitize i with respect to speculation. Note that the user doesn't control i directly, but can make it out of bounds by not finding a threshold in the array. Signed-off-by: Masashi Honma <masashi.honma@gmail.com> [add note about user control, as explained by Masashi] Signed-off-by: Johannes Berg <johannes.berg@intel.com>