From: kernel test robot <oliver.sang@intel.com>
To: Namhyung Kim <namhyung@kernel.org>
Cc: <oe-lkp@lists.linux.dev>, <lkp@intel.com>,
Ian Rogers <irogers@google.com>,
<linux-perf-users@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <oliver.sang@intel.com>
Subject: [namhyung-perf:perf/defer-callchain-v3] [perf record] 6bd89ae7d1: perf-sanity-tests.Zstd_perf.data_compression/decompression.fail
Date: Fri, 14 Nov 2025 15:14:31 +0800 [thread overview]
Message-ID: <202511141407.f9edcfa6-lkp@intel.com> (raw)
Hello,
kernel test robot noticed "perf-sanity-tests.Zstd_perf.data_compression/decompression.fail" on:
commit: 6bd89ae7d14788ba15e25289479addcb98e7dc26 ("perf record: Make sure to update build-ID cache")
https://git.kernel.org/cgit/linux/kernel/git/namhyung/linux-perf.git perf/defer-callchain-v3
[test failed on linux-next/master b179ce312bafcb8c68dc718e015aee79b7939ff0]
in testcase: perf-sanity-tests
version:
with following parameters:
perf_compiler: gcc
group: group-02
config: x86_64-rhel-9.4-bpf
compiler: gcc-14
test machine: 16 threads 1 sockets Intel(R) Xeon(R) E-2278G CPU @ 3.40GHz (Coffee Lake-E) with 32G memory
(please refer to attached dmesg/kmsg for entire log/backtrace)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <oliver.sang@intel.com>
| Closes: https://lore.kernel.org/oe-lkp/202511141407.f9edcfa6-lkp@intel.com
one thing we observed is the test still can pass sometimes. as below, upon
6bd89ae7d1, the tests failed 14 times out of 20 runs, but those other 6 runs
really pass, the log is just same as parent, which can always pass.
=========================================================================================
tbox_group/testcase/rootfs/kconfig/compiler/perf_compiler/group:
lkp-cfl-e1/perf-sanity-tests/debian-13-x86_64-20250902.cgz/x86_64-rhel-9.4-bpf/gcc-14/gcc/group-02
4df43709370cc18e 6bd89ae7d14788ba15e25289479
---------------- ---------------------------
fail:runs %reproduction fail:runs
| | |
:20 70% 14:20 perf-sanity-tests.Zstd_perf.data_compression/decompression.fail
2025-11-13 09:14:20 sudo /usr/src/linux-perf-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/perf test 89 -v
89: Zstd perf.data compression/decompression : Running (1 active)
--- start ---
test child forked, pid 13474
Collecting compressed record file:
500+0 records in
500+0 records out
256000 bytes (256 kB, 250 KiB) copied, 0.0023166 s, 111 MB/s
[ perf record: Woken up 1 times to write data ]
=================================================================
==13482==ERROR: AddressSanitizer: heap-use-after-free on address 0x50200003ddf0 at pc 0x557d1757c895 bp 0x7ffd3008e670 sp 0x7ffd3008e668
READ of size 8 at 0x50200003ddf0 thread T0
#0 0x557d1757c894 in maps__by_name_index util/maps.c:423
#1 0x557d1757d476 in __maps__remove util/maps.c:535
#2 0x557d1758107c in __maps__fixup_overlap_and_insert util/maps.c:956
#3 0x557d175811a8 in maps__fixup_overlap_and_insert util/maps.c:975
#4 0x557d175568a7 in machine__process_ksymbol_register util/machine.c:756
#5 0x557d1755706f in machine__process_ksymbol util/machine.c:824
#6 0x557d173f2ceb in perf_event__process_ksymbol util/event.c:301
#7 0x557d175986f4 in machines__deliver_event util/session.c:1349
#8 0x557d17598d60 in perf_session__deliver_event util/session.c:1386
#9 0x557d1759c7a4 in perf_session__process_event util/session.c:1682
#10 0x557d175a3e5f in process_simple util/session.c:2259
#11 0x557d175a2e1f in reader__read_event util/session.c:2188
#12 0x557d175a37c5 in reader__process_events util/session.c:2237
#13 0x557d175a464e in __perf_session__process_events util/session.c:2282
#14 0x557d175a770a in perf_session__process_events util/session.c:2446
#15 0x557d16eb78e5 in process_buildids /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/builtin-record.c:1570
#16 0x557d16ebc3ad in record__finish_output /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/builtin-record.c:1894
#17 0x557d16eca47c in __cmd_record /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/builtin-record.c:2966
#18 0x557d16ed804c in cmd_record /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/builtin-record.c:4453
#19 0x557d170e9a83 in run_builtin /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/perf.c:349
#20 0x557d170ea374 in handle_internal_command /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/perf.c:401
#21 0x557d170ea8ca in run_argv /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/perf.c:445
#22 0x557d170eb071 in main /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/perf.c:553
#23 0x7f986fa0cca7 (/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
#24 0x7f986fa0cd64 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29d64) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
#25 0x557d16e55250 in _start (/usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/perf+0x1010250) (BuildId: dcac6dff4df47b4588a4b1759f9412523bee60ca)
0x50200003ddf0 is located 0 bytes inside of 8-byte region [0x50200003ddf0,0x50200003ddf8)
freed by thread T0 here:
#0 0x7f9879ce38f8 in free ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:52
#1 0x557d1757545f in map__put util/map.c:312
#2 0x557d1757d37b in __maps__remove util/maps.c:529
#3 0x557d1758107c in __maps__fixup_overlap_and_insert util/maps.c:956
#4 0x557d175811a8 in maps__fixup_overlap_and_insert util/maps.c:975
#5 0x557d175568a7 in machine__process_ksymbol_register util/machine.c:756
#6 0x557d1755706f in machine__process_ksymbol util/machine.c:824
#7 0x557d173f2ceb in perf_event__process_ksymbol util/event.c:301
#8 0x557d175986f4 in machines__deliver_event util/session.c:1349
#9 0x557d17598d60 in perf_session__deliver_event util/session.c:1386
#10 0x557d1759c7a4 in perf_session__process_event util/session.c:1682
#11 0x557d175a3e5f in process_simple util/session.c:2259
#12 0x557d175a2e1f in reader__read_event util/session.c:2188
#13 0x557d175a37c5 in reader__process_events util/session.c:2237
#14 0x557d175a464e in __perf_session__process_events util/session.c:2282
#15 0x557d175a770a in perf_session__process_events util/session.c:2446
#16 0x557d16eb78e5 in process_buildids /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/builtin-record.c:1570
#17 0x557d16ebc3ad in record__finish_output /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/builtin-record.c:1894
#18 0x557d16eca47c in __cmd_record /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/builtin-record.c:2966
#19 0x557d16ed804c in cmd_record /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/builtin-record.c:4453
#20 0x557d170e9a83 in run_builtin /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/perf.c:349
#21 0x557d170ea374 in handle_internal_command /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/perf.c:401
#22 0x557d170ea8ca in run_argv /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/perf.c:445
#23 0x557d170eb071 in main /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/perf.c:553
#24 0x7f986fa0cca7 (/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
previously allocated by thread T0 here:
#0 0x7f9879ce4c57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
#1 0x557d1757894e in map__get util/map.h:188
#2 0x557d1757faaf in __maps__insert_sorted util/maps.c:790
#3 0x557d175810f3 in __maps__fixup_overlap_and_insert util/maps.c:965
#4 0x557d175811a8 in maps__fixup_overlap_and_insert util/maps.c:975
#5 0x557d175568a7 in machine__process_ksymbol_register util/machine.c:756
#6 0x557d1755706f in machine__process_ksymbol util/machine.c:824
#7 0x557d173f2ceb in perf_event__process_ksymbol util/event.c:301
#8 0x557d175986f4 in machines__deliver_event util/session.c:1349
#9 0x557d17598d60 in perf_session__deliver_event util/session.c:1386
#10 0x557d1759c7a4 in perf_session__process_event util/session.c:1682
#11 0x557d175a3e5f in process_simple util/session.c:2259
#12 0x557d175a2e1f in reader__read_event util/session.c:2188
#13 0x557d175a37c5 in reader__process_events util/session.c:2237
#14 0x557d175a464e in __perf_session__process_events util/session.c:2282
#15 0x557d175a770a in perf_session__process_events util/session.c:2446
#16 0x557d16eb78e5 in process_buildids /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/builtin-record.c:1570
#17 0x557d16ebc3ad in record__finish_output /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/builtin-record.c:1894
#18 0x557d16eca47c in __cmd_record /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/builtin-record.c:2966
#19 0x557d16ed804c in cmd_record /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/builtin-record.c:4453
#20 0x557d170e9a83 in run_builtin /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/perf.c:349
#21 0x557d170ea374 in handle_internal_command /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/perf.c:401
#22 0x557d170ea8ca in run_argv /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/perf.c:445
#23 0x557d170eb071 in main /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-6bd89ae7d14788ba15e25289479addcb98e7dc26/tools/perf/perf.c:553
#24 0x7f986fa0cca7 (/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
SUMMARY: AddressSanitizer: heap-use-after-free util/maps.c:423 in maps__by_name_index
Shadow bytes around the buggy address:
0x50200003db00: fa fa 00 fa fa fa fd fa fa fa 00 07 fa fa 00 fa
0x50200003db80: fa fa fd fa fa fa 00 fa fa fa fd fa fa fa 00 01
0x50200003dc00: fa fa 00 fa fa fa fd fd fa fa 00 fa fa fa fd fa
0x50200003dc80: fa fa fd fa fa fa fd fa fa fa fd fa fa fa 00 fa
0x50200003dd00: fa fa 00 fa fa fa 00 04 fa fa 00 fa fa fa 00 fa
=>0x50200003dd80: fa fa fd fa fa fa fd fa fa fa 00 fa fa fa[fd]fa
0x50200003de00: fa fa 00 fa fa fa 00 06 fa fa 00 01 fa fa 00 01
0x50200003de80: fa fa 00 03 fa fa 00 00 fa fa 00 05 fa fa 00 03
0x50200003df00: fa fa 00 02 fa fa 00 03 fa fa 00 02 fa fa 00 01
0x50200003df80: fa fa 00 06 fa fa fd fa fa fa fd fa fa fa 00 fa
0x50200003e000: fa fa 00 fa fa fa 00 fa fa fa fd fa fa fa fd fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==13482==ABORTING
---- end(-1) ----
89: Zstd perf.data compression/decompression : FAILED!
The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20251114/202511141407.f9edcfa6-lkp@intel.com
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-11-14 7:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202511141407.f9edcfa6-lkp@intel.com \
--to=oliver.sang@intel.com \
--cc=irogers@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=lkp@intel.com \
--cc=namhyung@kernel.org \
--cc=oe-lkp@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.