aboutsummaryrefslogtreecommitdiffstats
path: root/lib/muldi3.c
diff options
context:
space:
mode:
authorJianlin Lv <Jianlin.Lv@arm.com>2021-02-03 22:57:02 +0800
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-02-08 16:25:00 -0300
commit900547dd0fd273f03fd10cf5f48824056ddb4fdb (patch)
treea75ca5d88739b5fc4848e52456de73c139f4dfe0 /lib/muldi3.c
parentperf trace-event-info: Rename for_each_event. (diff)
downloadlinux-dev-900547dd0fd273f03fd10cf5f48824056ddb4fdb.tar.xz
linux-dev-900547dd0fd273f03fd10cf5f48824056ddb4fdb.zip
perf probe: Add protection to avoid endless loop
if dwarf_offdie() returns NULL, the continue statement forces the next iteration of the loop without updating the 'off' variable. It will cause an endless loop in the process of traversing the compile unit. So add exception protection for looping CUs. Signed-off-by: Jianlin Lv <Jianlin.Lv@arm.com> Acked-by: Masami Hiramatsu <mhiramat@kernel.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Cc: jianlin.lv@arm.com Link: http://lore.kernel.org/lkml/20210203145702.1219509-1-Jianlin.Lv@arm.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'lib/muldi3.c')
0 files changed, 0 insertions, 0 deletions