2021-05-21 10:00:42

by kernel test robot

[permalink] [raw]
Subject: [perf tools] 06e5ca746c: Direct leak of ### byte(s) in # object(s) allocated from: __interceptor_realloc/strbuf_grow/strbuf_add/strbuf_addstr/add_key/add_sort_string/



Greeting,

FYI, we noticed the following commit (built with gcc-9):

commit: 06e5ca746c07380dfe0e4c3e10c34a6daa69eae6 ("perf tools: Support pipeline stage cycles for powerpc")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master


in testcase: perf-test
version: perf-test-x86_64-git-1_20210508
with following parameters:

type: lkp
ucode: 0xde

test-description: The internal Perf Test suite.


on test machine: 4 threads 1 sockets Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz with 32G memory

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):




If you fix the issue, kindly add following tag
Reported-by: kernel test robot <[email protected]>

Direct leak of 736 byte(s) in 1 object(s) allocated from:
#0 0x7f9cb9a16720 in __interceptor_realloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xe9720)
#1 0x55e00bbd08ca in strbuf_grow util/strbuf.c:64
#2 0x55e00bbd0d42 in strbuf_add util/strbuf.c:86
#3 0x55e00bd458be in strbuf_addstr util/strbuf.h:87
#4 0x55e00bd66ddb in add_key util/sort.c:3329
#5 0x55e00bd67045 in add_sort_string util/sort.c:3342
#6 0x55e00bd67369 in sort_help util/sort.c:3368
#7 0x55e00b8a1f00 in cmd_report /usr/src/perf_selftests-x86_64-rhel-8.3-06e5ca746c07380dfe0e4c3e10c34a6daa69eae6/tools/perf/builtin-report.c:1177
#8 0x55e00bae47e2 in run_builtin /usr/src/perf_selftests-x86_64-rhel-8.3-06e5ca746c07380dfe0e4c3e10c34a6daa69eae6/tools/perf/perf.c:313
#9 0x55e00bae4f8d in handle_internal_command /usr/src/perf_selftests-x86_64-rhel-8.3-06e5ca746c07380dfe0e4c3e10c34a6daa69eae6/tools/perf/perf.c:365
#10 0x55e00bae54af in run_argv /usr/src/perf_selftests-x86_64-rhel-8.3-06e5ca746c07380dfe0e4c3e10c34a6daa69eae6/tools/perf/perf.c:409
#11 0x55e00bae5e8f in main /usr/src/perf_selftests-x86_64-rhel-8.3-06e5ca746c07380dfe0e4c3e10c34a6daa69eae6/tools/perf/perf.c:539
#12 0x7f9cb8c0309a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2409a)



To reproduce:

git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp install job.yaml # job file is attached in this email
bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run
bin/lkp run generated-yaml-file



---
0DAY/LKP+ Test Infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/[email protected] Intel Corporation

Thanks,
Oliver Sang


Attachments:
(No filename) (2.50 kB)
config-5.12.0-rc2-00111-g06e5ca746c07 (175.54 kB)
job-script (5.27 kB)
kmsg.xz (55.66 kB)
perf-test (300.81 kB)
job.yaml (4.37 kB)
reproduce (773.00 B)
Download all attachments