aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/export-to-postgresql-report
diff options
context:
space:
mode:
authorThomas Richter <[email protected]>2018-01-17 13:16:11 +0000
committerArnaldo Carvalho de Melo <[email protected]>2018-01-17 13:31:25 +0000
commit81fccd6ca507d3b2012eaf1edeb9b1dbf4bd22db (patch)
treecc3442e78f7b96b5c54ad85c088677496d596c95 /tools/perf/scripts/python/bin/export-to-postgresql-report
parentperf script: Remove the time slices number limitation (diff)
downloadkernel-81fccd6ca507d3b2012eaf1edeb9b1dbf4bd22db.tar.gz
kernel-81fccd6ca507d3b2012eaf1edeb9b1dbf4bd22db.zip
perf record: Fix failed memory allocation for get_cpuid_str
In x86 architecture dependend part function get_cpuid_str() mallocs a 128 byte buffer, but does not check if the memory allocation succeeded or not. When the memory allocation fails, function __get_cpuid() is called with first parameter being a NULL pointer. However this function references its first parameter and operates on a NULL pointer which might cause core dumps. Signed-off-by: Thomas Richter <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Hendrik Brueckner <[email protected]> Cc: Martin Schwidefsky <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions