aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorArtem Savkov <[email protected]>2018-11-20 11:52:15 -0600
committerIngo Molnar <[email protected]>2018-11-20 18:59:00 +0100
commit0b9301fb632f7111a3293a30cc5b20f1b82ed08d (patch)
tree1af497240491f23d73bb55cfba744fc94c61bde7 /tools/perf/scripts/python/export-to-postgresql.py
parent9ff01193a20d391e8dbce4403dd5ef87c7eaaca6 (diff)
objtool: Fix double-free in .cold detection error path
If read_symbols() fails during second list traversal (the one dealing with ".cold" subfunctions) it frees the symbol, but never deletes it from the list/hash_table resulting in symbol being freed again in elf_close(). Fix it by just returning an error, leaving cleanup to elf_close(). Signed-off-by: Artem Savkov <[email protected]> Signed-off-by: Josh Poimboeuf <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Fixes: 13810435b9a7 ("objtool: Support GCC 8's cold subfunctions") Link: http://lkml.kernel.org/r/beac5a9b7da9e8be90223459dcbe07766ae437dd.1542736240.git.jpoimboe@redhat.com Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions