diff options
| author | Sami Tolvanen <[email protected]> | 2020-11-13 18:31:26 +0000 |
|---|---|---|
| committer | Peter Zijlstra <[email protected]> | 2020-11-17 12:15:38 +0000 |
| commit | ebd19fc372e3e78bf165f230e7c084e304441c08 (patch) | |
| tree | 1457a5636b1f6f0ed0fca74b32029024b647ff2e /scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h | |
| parent | perf/x86/intel/uncore: Fix Add BW copypasta (diff) | |
| download | kernel-ebd19fc372e3e78bf165f230e7c084e304441c08.tar.gz kernel-ebd19fc372e3e78bf165f230e7c084e304441c08.zip | |
perf/x86: fix sysfs type mismatches
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 <[email protected]>
Signed-off-by: Sami Tolvanen <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h')
0 files changed, 0 insertions, 0 deletions
