Revision 74545f63890e38520eb4d1dbedcadaa9c0dbc824 authored by David Carrillo-Cisneros on 23 December 2016, 01:17:40 UTC, committed by Ingo Molnar on 05 January 2017, 08:13:55 UTC
The conversion of Intel PMU drivers into modules did not include reference counting. The machine will crash when attempting to access deleted code if an event from a module PMU is started and the module removed before the event is destroyed. i.e. this crashes the machine: $ insmod intel-rapl-perf.ko $ perf stat -e power/energy-cores/ -C 0 & $ rmmod intel-rapl-perf.ko Set THIS_MODULE to pmu->module in Intel module PMUs so that generic code can handle reference counting and deny rmmod while an event still exists. Signed-off-by: David Carrillo-Cisneros <davidcc@google.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Borislav Petkov <bp@suse.de> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Kan Liang <kan.liang@intel.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul Turner <pjt@google.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Cc: Stephane Eranian <eranian@google.com> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1482455860-116269-1-git-send-email-davidcc@google.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 4e06d4f
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 3.2 KB |
Makefile | -rw-r--r-- | 424 bytes |
aops.c | -rw-r--r-- | 52.5 KB |
aops.h | -rw-r--r-- | 3.9 KB |
attrib.c | -rw-r--r-- | 89.6 KB |
attrib.h | -rw-r--r-- | 4.2 KB |
bitmap.c | -rw-r--r-- | 5.4 KB |
bitmap.h | -rw-r--r-- | 3.5 KB |
collate.c | -rw-r--r-- | 3.6 KB |
collate.h | -rw-r--r-- | 1.7 KB |
compress.c | -rw-r--r-- | 28.5 KB |
debug.c | -rw-r--r-- | 4.8 KB |
debug.h | -rw-r--r-- | 2.3 KB |
dir.c | -rw-r--r-- | 51.5 KB |
dir.h | -rw-r--r-- | 1.6 KB |
endian.h | -rw-r--r-- | 2.2 KB |
file.c | -rw-r--r-- | 60.7 KB |
index.c | -rw-r--r-- | 14.8 KB |
index.h | -rw-r--r-- | 5.5 KB |
inode.c | -rw-r--r-- | 96.8 KB |
inode.h | -rw-r--r-- | 11.1 KB |
layout.h | -rw-r--r-- | 97.0 KB |
lcnalloc.c | -rw-r--r-- | 32.4 KB |
lcnalloc.h | -rw-r--r-- | 5.7 KB |
logfile.c | -rw-r--r-- | 28.2 KB |
logfile.h | -rw-r--r-- | 13.5 KB |
malloc.h | -rw-r--r-- | 3.0 KB |
mft.c | -rw-r--r-- | 99.5 KB |
mft.h | -rw-r--r-- | 4.0 KB |
mst.c | -rw-r--r-- | 6.9 KB |
namei.c | -rw-r--r-- | 14.1 KB |
ntfs.h | -rw-r--r-- | 5.0 KB |
quota.c | -rw-r--r-- | 3.6 KB |
quota.h | -rw-r--r-- | 1.2 KB |
runlist.c | -rw-r--r-- | 59.5 KB |
runlist.h | -rw-r--r-- | 3.3 KB |
super.c | -rw-r--r-- | 99.7 KB |
sysctl.c | -rw-r--r-- | 2.3 KB |
sysctl.h | -rw-r--r-- | 1.4 KB |
time.h | -rw-r--r-- | 3.5 KB |
types.h | -rw-r--r-- | 2.0 KB |
unistr.c | -rw-r--r-- | 12.2 KB |
upcase.c | -rw-r--r-- | 3.8 KB |
usnjrnl.c | -rw-r--r-- | 2.7 KB |
usnjrnl.h | -rw-r--r-- | 9.1 KB |
volume.h | -rw-r--r-- | 6.8 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...