Peter Zijlstra
46b1b57722
perf/x86: Fix possible Spectre-v1 indexing for x86_pmu::event_map()
...
> arch/x86/events/intel/cstate.c:307 cstate_pmu_event_init() warn: potential spectre issue 'pkg_msr' (local cap)
> arch/x86/events/intel/core.c:337 intel_pmu_event_map() warn: potential spectre issue 'intel_perfmon_event_map'
> arch/x86/events/intel/knc.c:122 knc_pmu_event_map() warn: potential spectre issue 'knc_perfmon_event_map'
> arch/x86/events/intel/p4.c:722 p4_pmu_event_map() warn: potential spectre issue 'p4_general_events'
> arch/x86/events/intel/p6.c:116 p6_pmu_event_map() warn: potential spectre issue 'p6_perfmon_event_map'
> arch/x86/events/amd/core.c:132 amd_pmu_event_map() warn: potential spectre issue 'amd_perfmon_event_map'
Userspace controls @attr, sanitize @attr->config before passing it on
to x86_pmu::event_map().
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: <stable@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2018-05-05 08:37:28 +02:00
..
2018-04-12 09:04:22 +02:00
2018-03-09 22:45:53 +08:00
2018-04-27 17:07:58 +02:00
2018-05-05 08:37:28 +02:00
2018-03-28 22:47:06 +02:00
2018-04-02 20:16:18 +02:00
2018-04-29 10:06:05 -07:00
2018-04-27 17:06:28 +02:00
2018-04-27 18:37:17 +02:00
2018-04-02 15:16:43 -07:00
2018-04-25 11:02:51 +02:00
2018-03-23 11:31:58 -04:00
2018-02-21 09:54:17 +01:00
2018-04-02 17:18:45 -07:00
2018-04-02 17:46:37 -07:00
2018-04-20 11:52:00 +02:00
2018-04-13 17:10:28 -07:00
2018-02-20 09:33:41 +01:00
2018-02-22 09:01:10 -08:00
2018-04-11 16:36:47 -07:00
2018-04-15 16:12:35 -07:00
2018-02-13 14:10:29 +01:00
2018-04-25 11:02:51 +02:00
2018-03-25 07:36:02 -10:00
2018-01-30 13:01:09 -08:00
2018-04-02 14:37:03 -07:00