Peter Zijlstra
6467123872
perf/x86/msr: Fix possible Spectre-v1 indexing in the MSR driver
...
commit 06ce6e9b6d6c09d4129c6e24a1314a395d816c10 upstream.
> arch/x86/events/msr.c:178 msr_event_init() warn: potential spectre issue 'msr' (local cap)
Userspace controls @attr, sanitize cfg (attr->config) before using it
to index an array.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-16 10:10:31 +02:00
..
2018-03-24 11:01:25 +01:00
2018-02-13 10:19:46 +01:00
2018-05-01 12:58:27 -07:00
2018-05-16 10:10:25 +02:00
2017-12-20 10:10:34 +01:00
2017-11-02 11:20:11 +01:00
2017-11-02 11:19:54 +01:00
2017-11-02 11:20:11 +01:00
2018-03-28 18:24:38 +02:00
2017-11-02 11:20:11 +01:00
2018-03-03 10:24:35 +01:00
2018-02-28 10:19:44 +01:00
2018-02-25 11:07:58 +01:00
2018-02-13 10:19:46 +01:00
2018-04-29 11:33:16 +02:00
2018-04-26 11:02:17 +02:00
2018-02-16 20:23:11 +01:00
2018-02-13 10:19:46 +01:00
2018-02-22 15:42:23 +01:00
2018-04-19 08:56:16 +02:00
2018-05-16 10:10:25 +02:00
2018-04-29 11:33:18 +02:00
2017-11-02 11:19:54 +01:00
2018-03-03 10:24:36 +01:00
2018-04-26 11:02:14 +02:00
2017-12-17 15:07:59 +01:00
2018-04-24 09:36:33 +02:00
2018-02-22 15:42:23 +01:00
2018-05-16 10:10:31 +02:00
2018-02-28 10:19:38 +01:00
2017-12-10 13:40:40 +01:00