Re: [PATCH] perf/x86: fix sysfs type mismatches

2020-11-17 Thread Peter Zijlstra
On Fri, Nov 13, 2020 at 10:31:26AM -0800, Sami Tolvanen wrote: > 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

Re: [PATCH] perf/x86: fix sysfs type mismatches

2020-11-13 Thread Kees Cook
On Fri, Nov 13, 2020 at 10:31:26AM -0800, Sami Tolvanen wrote: > 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

[PATCH] perf/x86: fix sysfs type mismatches

2020-11-13 Thread Sami Tolvanen
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 Signed-off-by: Sami Tolvanen ---