diff options
author | Masashi Honma <masashi.honma@gmail.com> | 2018-09-25 11:15:01 +0900 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-09-27 11:44:44 +0200 |
commit | 1222a16014888ed9733c11e221730d4a8196222b (patch) | |
tree | 996fc5f62a229ad0d726fa868eecf21cc4ff7ba9 /net/core | |
parent | 28ef8b49a338dc1844e86b7954cfffc7dfa2660a (diff) | |
download | linux-1222a16014888ed9733c11e221730d4a8196222b.tar.bz2 |
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>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions