]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/msr: Fix SMI overflow
authorPeter Zijlstra <peterz@infradead.org>
Tue, 10 May 2016 12:16:54 +0000 (14:16 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 12 May 2016 08:14:30 +0000 (10:14 +0200)
commit815f11c771bf3af0c19535e130b186f29501ddc4
treef45c7a531d0ec4a2436787816479f176f6341ca7
parentb1f8507ca246527ea20d364863629b5cc4578500
perf/x86/msr: Fix SMI overflow

We compute 'delta' and properly sign extend it and then ignore it and
recompute the raw value, loosing the sign extention.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andy Lutomirski <luto@amacapital.net>
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>
Cc: kan.liang@intel.com
Cc: linux-kernel@vger.kernel.org
Cc: luto@kernel.org
Cc: ray.huang@amd.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/msr.c