aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2018-05-21 22:05:30 +0100
committerChris Wilson <[email protected]>2018-05-22 10:47:07 +0100
commit84b510e22da7926522a257cfe295d3695346a0bd (patch)
tree2727b27a6fe7db45f7d973f340d09d42d52ed305 /tools/perf/scripts/python/net_dropmonitor.py
parentd93fa1b47b8fcd149b5091f18385304f402a8e15 (diff)
drm/i915/query: Protect tainted function pointer lookup
Smatch identifies i915_query_ioctl() as being a potential victim of Spectre due to its use of a tainted user index into a function pointer array. Use array_index_nospec() to defang the user index before using it to lookup the function pointer. Fixes: a446ae2c6e65 ("drm/i915: add query uAPI") Signed-off-by: Chris Wilson <[email protected]> Cc: Lionel Landwerlin <[email protected]> Cc: Joonas Lahtinen <[email protected]> Cc: Tvrtko Ursulin <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions