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.3 KB |
Makefile | -rw-r--r-- | 1.1 KB |
README | -rw-r--r-- | 7.9 KB |
acl.h | -rw-r--r-- | 1.8 KB |
bitmap.c | -rw-r--r-- | 39.3 KB |
dir.c | -rw-r--r-- | 9.0 KB |
do_balan.c | -rw-r--r-- | 54.3 KB |
file.c | -rw-r--r-- | 7.5 KB |
fix_node.c | -rw-r--r-- | 77.4 KB |
hashes.c | -rw-r--r-- | 3.5 KB |
ibalance.c | -rw-r--r-- | 34.3 KB |
inode.c | -rw-r--r-- | 93.0 KB |
ioctl.c | -rw-r--r-- | 5.4 KB |
item_ops.c | -rw-r--r-- | 18.0 KB |
journal.c | -rw-r--r-- | 120.3 KB |
lbalance.c | -rw-r--r-- | 41.3 KB |
lock.c | -rw-r--r-- | 2.6 KB |
namei.c | -rw-r--r-- | 43.9 KB |
objectid.c | -rw-r--r-- | 6.8 KB |
prints.c | -rw-r--r-- | 20.6 KB |
procfs.c | -rw-r--r-- | 13.3 KB |
reiserfs.h | -rw-r--r-- | 116.6 KB |
resize.c | -rw-r--r-- | 6.3 KB |
stree.c | -rw-r--r-- | 64.0 KB |
super.c | -rw-r--r-- | 68.4 KB |
tail_conversion.c | -rw-r--r-- | 9.1 KB |
xattr.c | -rw-r--r-- | 24.2 KB |
xattr.h | -rw-r--r-- | 3.6 KB |
xattr_acl.c | -rw-r--r-- | 9.4 KB |
xattr_security.c | -rw-r--r-- | 2.7 KB |
xattr_trusted.c | -rw-r--r-- | 1.1 KB |
xattr_user.c | -rw-r--r-- | 1.0 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...