]> git.itanic.dy.fi Git - linux-stable/commit
perf symbols: Fix ppc64 SEGV in dso__load_sym with debuginfo files
authorAnton Blanchard <anton@samba.org>
Wed, 24 Aug 2011 06:40:14 +0000 (16:40 +1000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:41:02 +0000 (11:41 -0700)
commit8413239bfc9e8b94af509c7a43c7d92bd8965630
tree0e71939cc45aea5ffe085fe27661d91065f47b7e
parent99904bf394be0c65e12440bca422b18d1198d73f
perf symbols: Fix ppc64 SEGV in dso__load_sym with debuginfo files

commit adb091846318f86e4f46c7d6a7b40d2f478abdbe upstream.

64bit PowerPC debuginfo files have an empty function descriptor section.
I hit a SEGV when perf tried to use this section for symbol resolution.

To fix this we need to check the section is valid and we can do this by
checking for type SHT_PROGBITS.

Cc: <stable@kernel.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Eric B Munson <emunson@mgebm.net>
Link: http://lkml.kernel.org/r/20110824065242.895239970@samba.org
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
tools/perf/util/symbol.c