mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Oliver Sang <oliver.sang@intel.com>
To: Ian Rogers <irogers@google.com>
Cc: Thomas Richter <tmricht@linux.ibm.com>, <oe-lkp@lists.linux.dev>,
	<lkp@intel.com>, Arnaldo Carvalho de Melo <acme@redhat.com>,
	Sri Jayaramappa <sjayaram@akamai.com>,
	Adrian Hunter <adrian.hunter@intel.com>,
	"Alexander Shishkin" <alexander.shishkin@linux.intel.com>,
	Guilherme Amadio <amadio@gentoo.org>,
	Ingo Molnar <mingo@redhat.com>, Jiri Olsa <jolsa@kernel.org>,
	Namhyung Kim <namhyung@kernel.org>,
	Peter Zijlstra <peterz@infradead.org>,
	<linux-perf-users@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>, <oliver.sang@intel.com>
Subject: Re: [linux-next:master] [perf test subcmd help] ef92c4351e: kmsg.sanitizer.indirect_leak/malloc/___interceptor_backtrace/child_test_sig_handler/raise/abort
Date: Fri, 23 Jan 2026 14:17:51 +0800	[thread overview]
Message-ID: <aXMSjyjjd2PRDpok@xsang-OptiPlex-9020> (raw)
In-Reply-To: <CAP-5=fVyGswdFrEw7=P8RGPJP+2wW3qQhzCfz1BoJ9Uvg4iKDg@mail.gmail.com>


hi, Ian Rogers,


On Wed, Jan 21, 2026 at 07:52:15AM -0800, Ian Rogers wrote:

[...]

> >     #20 0x55f34aa28241 in _start perf[102f241]
> 
> I believe this is resolved by:
> https://lore.kernel.org/lkml/20260121082402.2311962-1-tmricht@linux.ibm.com/
> 
> > =================================================================
> > ==11710==ERROR: LeakSanitizer: detected memory leaks
> >
> > Direct leak of 30952 byte(s) in 3 object(s) allocated from:
> >     #0 0x7f7688ced610 in calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:77
> >     #1 0x7f7688ace808  (/lib/x86_64-linux-gnu/libelf.so.1+0x3808) (BuildId: d6a40be9eadcbcb0562b7bb13bbe81166e82cc40)
> >
> > Indirect leak of 9280 byte(s) in 3 object(s) allocated from:
> >     #0 0x7f7688cedc57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
> >     #1 0x7f7688ad6550  (/lib/x86_64-linux-gnu/libelf.so.1+0xb550) (BuildId: d6a40be9eadcbcb0562b7bb13bbe81166e82cc40)
> >
> > Indirect leak of 1873 byte(s) in 3 object(s) allocated from:
> >     #0 0x7f7688cedc57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
> >     #1 0x7f7688ad73fa  (/lib/x86_64-linux-gnu/libelf.so.1+0xc3fa) (BuildId: d6a40be9eadcbcb0562b7bb13bbe81166e82cc40)
> >
> > SUMMARY: AddressSanitizer: 42105 byte(s) leaked in 9 allocation(s).
> >  68.4: Exclude disjoint subcmd names                                 : FAILED!
> 
> To better diagnose these leaks could you disable the fast asan stack unwinder:
> ASAN_OPTIONS=fast_unwind_on_malloc=0

thanks a lot for guidance!

we've made the change according, now see results like below [1]

we will supply these information in future reports. thanks again!


[1]

=================================================================
==11725==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 30952 byte(s) in 3 object(s) allocated from:
    #0 0x7fed49fb4610 in calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:77
    #1 0x7fed49d95808  (/lib/x86_64-linux-gnu/libelf.so.1+0x3808) (BuildId: d6a40be9eadcbcb0562b7bb13bbe81166e82cc40)
    #2 0x7fed49d965f9  (/lib/x86_64-linux-gnu/libelf.so.1+0x45f9) (BuildId: d6a40be9eadcbcb0562b7bb13bbe81166e82cc40)
    #3 0x55dc6825e4f7 in symsrc__init util/symbol-elf.c:1164
    #4 0x55dc67ddba50 in dso__load util/symbol.c:1795
    #5 0x55dc67e6fa86 in map__load util/map.c:351
    #6 0x55dc67e6fe6d in map__find_symbol util/map.c:385
    #7 0x55dc67e4480a in __dump_stack util/debug.c:343
    #8 0x55dc67ad0c84 in child_test_sig_handler tests/builtin-test.c:313
    #9 0x7fed3fcf2def  (/lib/x86_64-linux-gnu/libc.so.6+0x3fdef) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
    #10 0x7fed3fd4795b  (/lib/x86_64-linux-gnu/libc.so.6+0x9495b) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
    #11 0x7fed3fcf2cc1 in gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x3fcc1) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
    #12 0x7fed3fcdb4ab in abort (/lib/x86_64-linux-gnu/libc.so.6+0x284ab) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
    #13 0x7fed3fcdb41f  (/lib/x86_64-linux-gnu/libc.so.6+0x2841f) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
    #14 0x55dc67a0ee6f in exclude_cmds /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-ef92c4351ec75bcfb8a1cc3a88109b5339f296ef/tools/lib/subcmd/help.c:107
    #15 0x55dc67bb4645 in test__exclude_cmdnames_no_overlap tests/subcmd-help.c:110
    #16 0x55dc67ad14c4 in run_test_child tests/builtin-test.c:340
    #17 0x55dc67a22db2 in start_command /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-ef92c4351ec75bcfb8a1cc3a88109b5339f296ef/tools/lib/subcmd/run-command.c:128
    #18 0x55dc67ad39a0 in start_test tests/builtin-test.c:545
    #19 0x55dc67ad490c in __cmd_test tests/builtin-test.c:648
    #20 0x55dc67ad72bf in cmd_test tests/builtin-test.c:850
    #21 0x55dc679dca44 in run_builtin /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-ef92c4351ec75bcfb8a1cc3a88109b5339f296ef/tools/perf/perf.c:349
    #22 0x55dc679dd335 in handle_internal_command /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-ef92c4351ec75bcfb8a1cc3a88109b5339f296ef/tools/perf/perf.c:401
    #23 0x55dc679dd88b in run_argv /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-ef92c4351ec75bcfb8a1cc3a88109b5339f296ef/tools/perf/perf.c:445
    #24 0x55dc679de032 in main /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-ef92c4351ec75bcfb8a1cc3a88109b5339f296ef/tools/perf/perf.c:553
    #25 0x7fed3fcdcca7  (/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
    #26 0x7fed3fcdcd64 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29d64) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
    #27 0x55dc67742240 in _start (/usr/src/perf_selftests-x86_64-rhel-9.4-bpf-ef92c4351ec75bcfb8a1cc3a88109b5339f296ef/tools/perf/perf+0x102f240) (BuildId: b8c98ab0747f9f1fe41a64089a7488f7aedbc9d8)

Indirect leak of 9280 byte(s) in 3 object(s) allocated from:
    #0 0x7fed49fb4c57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x7fed49d9d550  (/lib/x86_64-linux-gnu/libelf.so.1+0xb550) (BuildId: d6a40be9eadcbcb0562b7bb13bbe81166e82cc40)
    #2 0x7fed49d9e517  (/lib/x86_64-linux-gnu/libelf.so.1+0xc517) (BuildId: d6a40be9eadcbcb0562b7bb13bbe81166e82cc40)
    #3 0x7fed49d9e0b1 in elf_rawdata (/lib/x86_64-linux-gnu/libelf.so.1+0xc0b1) (BuildId: d6a40be9eadcbcb0562b7bb13bbe81166e82cc40)
    #4 0x55dc68254770 in elf_section_by_name util/symbol-elf.c:193
    #5 0x55dc6825d641 in read_gnu_debugdata util/symbol-elf.c:1086
    #6 0x55dc6825e625 in symsrc__init util/symbol-elf.c:1173
    #7 0x55dc67ddba50 in dso__load util/symbol.c:1795
    #8 0x55dc67e6fa86 in map__load util/map.c:351
    #9 0x55dc67e6fe6d in map__find_symbol util/map.c:385
    #10 0x55dc67e4480a in __dump_stack util/debug.c:343
    #11 0x55dc67ad0c84 in child_test_sig_handler tests/builtin-test.c:313
    #12 0x7fed3fcf2def  (/lib/x86_64-linux-gnu/libc.so.6+0x3fdef) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
    #13 0x7fed3fd4795b  (/lib/x86_64-linux-gnu/libc.so.6+0x9495b) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
    #14 0x7fed3fcf2cc1 in gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x3fcc1) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
    #15 0x7fed3fcdb4ab in abort (/lib/x86_64-linux-gnu/libc.so.6+0x284ab) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
    #16 0x7fed3fcdb41f  (/lib/x86_64-linux-gnu/libc.so.6+0x2841f) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
    #17 0x55dc67a0ee6f in exclude_cmds /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-ef92c4351ec75bcfb8a1cc3a88109b5339f296ef/tools/lib/subcmd/help.c:107
    #18 0x55dc67bb4645 in test__exclude_cmdnames_no_overlap tests/subcmd-help.c:110
    #19 0x55dc67ad14c4 in run_test_child tests/builtin-test.c:340
    #20 0x55dc67a22db2 in start_command /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-ef92c4351ec75bcfb8a1cc3a88109b5339f296ef/tools/lib/subcmd/run-command.c:128
    #21 0x55dc67ad39a0 in start_test tests/builtin-test.c:545
    #22 0x55dc67ad490c in __cmd_test tests/builtin-test.c:648
    #23 0x55dc67ad72bf in cmd_test tests/builtin-test.c:850
    #24 0x55dc679dca44 in run_builtin /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-ef92c4351ec75bcfb8a1cc3a88109b5339f296ef/tools/perf/perf.c:349
    #25 0x55dc679dd335 in handle_internal_command /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-ef92c4351ec75bcfb8a1cc3a88109b5339f296ef/tools/perf/perf.c:401
    #26 0x55dc679dd88b in run_argv /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-ef92c4351ec75bcfb8a1cc3a88109b5339f296ef/tools/perf/perf.c:445
    #27 0x55dc679de032 in main /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-ef92c4351ec75bcfb8a1cc3a88109b5339f296ef/tools/perf/perf.c:553

Indirect leak of 1873 byte(s) in 3 object(s) allocated from:
    #0 0x7fed49fb4c57 in malloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:69
    #1 0x7fed49d9e3fa  (/lib/x86_64-linux-gnu/libelf.so.1+0xc3fa) (BuildId: d6a40be9eadcbcb0562b7bb13bbe81166e82cc40)
    #2 0x7fed49d9e0b1 in elf_rawdata (/lib/x86_64-linux-gnu/libelf.so.1+0xc0b1) (BuildId: d6a40be9eadcbcb0562b7bb13bbe81166e82cc40)
    #3 0x55dc68254770 in elf_section_by_name util/symbol-elf.c:193
    #4 0x55dc6825d641 in read_gnu_debugdata util/symbol-elf.c:1086
    #5 0x55dc6825e625 in symsrc__init util/symbol-elf.c:1173
    #6 0x55dc67ddba50 in dso__load util/symbol.c:1795
    #7 0x55dc67e6fa86 in map__load util/map.c:351
    #8 0x55dc67e6fe6d in map__find_symbol util/map.c:385
    #9 0x55dc67e4480a in __dump_stack util/debug.c:343
    #10 0x55dc67ad0c84 in child_test_sig_handler tests/builtin-test.c:313
    #11 0x7fed3fcf2def  (/lib/x86_64-linux-gnu/libc.so.6+0x3fdef) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
    #12 0x7fed3fd4795b  (/lib/x86_64-linux-gnu/libc.so.6+0x9495b) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
    #13 0x7fed3fcf2cc1 in gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x3fcc1) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
    #14 0x7fed3fcdb4ab in abort (/lib/x86_64-linux-gnu/libc.so.6+0x284ab) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
    #15 0x7fed3fcdb41f  (/lib/x86_64-linux-gnu/libc.so.6+0x2841f) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
    #16 0x55dc67a0ee6f in exclude_cmds /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-ef92c4351ec75bcfb8a1cc3a88109b5339f296ef/tools/lib/subcmd/help.c:107
    #17 0x55dc67bb4645 in test__exclude_cmdnames_no_overlap tests/subcmd-help.c:110
    #18 0x55dc67ad14c4 in run_test_child tests/builtin-test.c:340
    #19 0x55dc67a22db2 in start_command /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-ef92c4351ec75bcfb8a1cc3a88109b5339f296ef/tools/lib/subcmd/run-command.c:128
    #20 0x55dc67ad39a0 in start_test tests/builtin-test.c:545
    #21 0x55dc67ad490c in __cmd_test tests/builtin-test.c:648
    #22 0x55dc67ad72bf in cmd_test tests/builtin-test.c:850
    #23 0x55dc679dca44 in run_builtin /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-ef92c4351ec75bcfb8a1cc3a88109b5339f296ef/tools/perf/perf.c:349
    #24 0x55dc679dd335 in handle_internal_command /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-ef92c4351ec75bcfb8a1cc3a88109b5339f296ef/tools/perf/perf.c:401
    #25 0x55dc679dd88b in run_argv /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-ef92c4351ec75bcfb8a1cc3a88109b5339f296ef/tools/perf/perf.c:445
    #26 0x55dc679de032 in main /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-ef92c4351ec75bcfb8a1cc3a88109b5339f296ef/tools/perf/perf.c:553
    #27 0x7fed3fcdcca7  (/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)

SUMMARY: AddressSanitizer: 42105 byte(s) leaked in 9 allocation(s).
 68.4: Exclude disjoint subcmd names                                 : FAILED!

> 
> Thanks,
> Ian
> 
> > The kernel config and materials to reproduce are available at:
> > https://download.01.org/0day-ci/archive/20260120/202601201519.ce4c3ab3-lkp@intel.com
> >
> >
> >
> > --
> > 0-DAY CI Kernel Test Service
> > https://github.com/intel/lkp-tests/wiki
> >

  reply	other threads:[~2026-01-23  6:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-20  7:57 kernel test robot
2026-01-21 15:52 ` Ian Rogers
2026-01-23  6:17   ` Oliver Sang [this message]
2026-01-23 16:05     ` Ian Rogers

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=aXMSjyjjd2PRDpok@xsang-OptiPlex-9020 \
    --to=oliver.sang@intel.com \
    --cc=acme@redhat.com \
    --cc=adrian.hunter@intel.com \
    --cc=alexander.shishkin@linux.intel.com \
    --cc=amadio@gentoo.org \
    --cc=irogers@google.com \
    --cc=jolsa@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=mingo@redhat.com \
    --cc=namhyung@kernel.org \
    --cc=oe-lkp@lists.linux.dev \
    --cc=peterz@infradead.org \
    --cc=sjayaram@akamai.com \
    --cc=tmricht@linux.ibm.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®