aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorKrister Johansen <[email protected]>2017-01-06 06:23:31 +0000
committerArnaldo Carvalho de Melo <[email protected]>2017-02-02 14:39:09 +0000
commitaa33b9b9a2ebb00d33c83a5312d4fbf2d5aeba36 (patch)
treebb0805b62c31bfee44ae018eac68214c0e40d1e1 /scripts/gcc-plugins/sancov_plugin.c
parentperf diff: Fix -o/--order option behavior (again) (diff)
downloadkernel-aa33b9b9a2ebb00d33c83a5312d4fbf2d5aeba36.tar.gz
kernel-aa33b9b9a2ebb00d33c83a5312d4fbf2d5aeba36.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 <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Masami Hiramatsu <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: [email protected] Fixes: 84c2cafa2889 ("perf tools: Reference count struct map") Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions