Skip to content
Commit 1222a160 authored by Masashi Honma's avatar Masashi Honma Committed by Johannes Berg
Browse files

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: default avatarMasashi Honma <masashi.honma@gmail.com>
[add note about user control, as explained by Masashi]
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 28ef8b49
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment