Adrian Hunter
632a300260
perf callchain: Fix segfault in thread__resolve_callchain_sample()
...
commit aceb98261ea7d9fe38f9c140c5531f0b13623832 upstream.
Do not dereference 'chain' when it is NULL.
$ perf record -e intel_pt//u -e branch-misses:u uname
$ perf report --itrace=l --branch-history
perf: Segmentation fault
Fixes: e9024d519d89 ("perf callchain: Honour the ordering of PERF_CONTEXT_{USER,KERNEL,etc}")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lore.kernel.org/lkml/20191114142538.4097-1-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-09 10:20:02 +01:00
..
2019-12-31 16:45:40 +01:00
2019-12-31 16:45:47 +01:00
2019-08-12 17:14:14 -03:00
2019-09-10 12:31:39 -06:00
2019-05-30 11:26:35 -07:00
2019-07-12 12:24:03 -07:00
2019-11-13 13:46:04 +01:00
2019-09-24 12:36:31 -07:00
2019-08-18 20:45:57 +01:00
2019-10-15 12:44:00 -03:00
2019-05-23 10:25:26 -06:00
2019-06-19 17:09:53 +02:00
2019-06-19 17:11:22 +02:00
2019-07-25 20:07:52 +02:00
2019-12-31 16:45:45 +01:00
2019-12-31 16:43:40 +01:00
2019-12-31 16:44:25 +01:00
2019-07-15 20:44:49 -07:00
2019-06-19 17:09:08 +02:00
2020-01-09 10:20:02 +01:00
2020-01-04 19:18:20 +01:00
2019-07-23 09:04:54 -03:00
2019-05-30 11:29:19 -07:00
2020-01-09 10:19:59 +01:00
2019-05-24 17:37:52 +02:00
2019-06-05 17:36:37 +02:00
2019-11-29 10:10:21 +01:00
2019-10-13 09:38:27 -04:00
2019-07-12 11:05:46 -07:00
2019-06-19 17:09:55 +02:00
2019-08-14 10:59:59 -03:00