lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202511141407.f9edcfa6-lkp@intel.com>
Date: Fri, 14 Nov 2025 15:14:31 +0800
From: kernel test robot <oliver.sang@...el.com>
To: Namhyung Kim <namhyung@...nel.org>
CC: <oe-lkp@...ts.linux.dev>, <lkp@...el.com>, Ian Rogers
	<irogers@...gle.com>, <linux-perf-users@...r.kernel.org>,
	<linux-kernel@...r.kernel.org>, <oliver.sang@...el.com>
Subject: [namhyung-perf:perf/defer-callchain-v3] [perf record]  6bd89ae7d1:
 perf-sanity-tests.Zstd_perf.data_compression/decompression.fail



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@...el.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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ