1
0
Fork 0
alistair23-linux/arch/x86/events/intel
Sami Tolvanen 3753a62d57 perf/x86: fix sysfs type mismatches
[ Upstream commit ebd19fc372 ]

This change switches rapl to use PMU_FORMAT_ATTR, and fixes two other
macros to use device_attribute instead of kobj_attribute to avoid
callback type mismatches that trip indirect call checking with Clang's
Control-Flow Integrity (CFI).

Reported-by: Sedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lkml.kernel.org/r/20201113183126.1239404-1-samitolvanen@google.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-02 08:49:49 +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: Fix Ice Lake event constraint table 2020-11-05 11:43:23 +01:00
cstate.c perf/x86: fix sysfs type mismatches 2020-12-02 08:49:49 +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: fix sysfs type mismatches 2020-12-02 08:49:49 +01:00
uncore.h perf/x86: fix sysfs type mismatches 2020-12-02 08:49:49 +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