diff options
author | 2017-01-05 22:23:31 -0800 | |
---|---|---|
committer | 2017-01-31 16:19:06 -0300 | |
commit | 9c68ae98c6f714ef573826cfc9055af1bd5e97b1 (patch) | |
tree | f87b3cf4812f70534c8cc2309c934d6ffab69bbc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | tools headers: Sync {tools/,}arch/powerpc/include/uapi/asm/kvm.h, {tools/,}arch/x86/include/asm/cpufeatures.h and {tools/,}arch/arm/include/uapi/asm/kvm.h (diff) | |
download | linux-dev-9c68ae98c6f714ef573826cfc9055af1bd5e97b1.tar.xz linux-dev-9c68ae98c6f714ef573826cfc9055af1bd5e97b1.zip |
perf callchain: Reference count maps
If dso__load_kcore frees all of the existing maps, but one has already
been attached to a callchain cursor node, then we can get a SIGSEGV in
any function that happens to try to use this invalid cursor. Use the
existing map refcount mechanism to forestall cleanup of a map until the
cursor iterates past the node.
Signed-off-by: Krister Johansen <kjlx@templeofstupid.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: stable@kernel.org
Fixes: 84c2cafa2889 ("perf tools: Reference count struct map")
Link: http://lkml.kernel.org/r/20170106062331.GB2707@templeofstupid.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions