diff options
author | Peter Zijlstra <[email protected]> | 2018-04-20 14:25:48 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2018-05-05 08:37:31 +0200 |
commit | a5f81290ce475489fa2551c01a07470c1a4c932e (patch) | |
tree | 30002c9b41bfbd2560b97b274ce60582b788a36c /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 06ce6e9b6d6c09d4129c6e24a1314a395d816c10 (diff) |
perf/x86/cstate: Fix possible Spectre-v1 indexing for pkg_msr
> arch/x86/events/intel/cstate.c:307 cstate_pmu_event_init() warn: potential spectre issue 'pkg_msr' (local cap)
Userspace controls @attr, sanitize cfg (attr->config) before using it
to index an array.
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Vince Weaver <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions