1
0
Fork 0
alistair23-linux/arch/x86/events/intel
Kan Liang b257bb437d perf/x86/intel/uncore: Reduce the number of CBOX counters
[ Upstream commit ee13938543 ]

An oops is triggered by the fuzzy test.

[  327.853081] unchecked MSR access error: RDMSR from 0x70c at rIP:
0xffffffffc082c820 (uncore_msr_read_counter+0x10/0x50 [intel_uncore])
[  327.853083] Call Trace:
[  327.853085]  <IRQ>
[  327.853089]  uncore_pmu_event_start+0x85/0x170 [intel_uncore]
[  327.853093]  uncore_pmu_event_add+0x1a4/0x410 [intel_uncore]
[  327.853097]  ? event_sched_in.isra.118+0xca/0x240

There are 2 GP counters for each CBOX, but the current code claims 4
counters. Accessing the invalid registers triggers the oops.

Fixes: 6e394376ee ("perf/x86/intel/uncore: Add Intel Icelake uncore support")
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200925134905.8839-3-kan.liang@linux.intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-29 09:57:30 +01:00
..
Makefile perf/x86/rapl: Move RAPL support to common x86 code 2020-07-16 08:16:32 +02:00
bts.c perf/x86/intel/bts: Fix the use of page_private() 2020-01-09 10:20:07 +01:00
core.c perf/x86/intel: Add more available bits for OFFCORE_RESPONSE of Intel Tremont 2020-06-17 16:40:25 +02:00
cstate.c perf/x86/cstate: Add Tremont support 2020-03-05 16:43:37 +01:00
ds.c perf/x86/intel/ds: Fix x86_pmu_stop warning for large PEBS 2020-10-29 09:57:29 +01:00
knc.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
lbr.c perf/x86: Make more stuff static 2019-09-03 09:22:32 +02:00
p4.c x86: Fix various typos in comments 2018-12-03 10:49:13 +01:00
p6.c x86/cpu: Rename cpu_data.x86_mask to cpu_data.x86_stepping 2018-02-15 01:15:52 +01:00
pt.c perf/x86/intel/pt: Fix base for single entry topa 2019-10-20 14:42:28 +02:00
pt.h perf/x86/intel/pt: Get rid of reverse lookup table for ToPA 2019-08-26 12:00:16 +02:00
uncore.c perf/x86/uncore: Fix event group support 2019-10-28 11:02:01 +01:00
uncore.h perf/x86/uncore: Fix event group support 2019-10-28 11:02:01 +01:00
uncore_nhmex.c perf/x86/intel/uncore: Correct fixed counter index check for NHM 2018-05-31 12:36:28 +02:00
uncore_snb.c perf/x86/intel/uncore: Reduce the number of CBOX counters 2020-10-29 09:57:30 +01:00
uncore_snbep.c perf/x86/intel/uncore: Remove PCIe3 unit for SNR 2020-02-05 21:22:47 +00:00