Re: [linux-next:master] [perf test subcmd help] ef92c4351e: kmsg.sanitizer.indirect_leak/malloc/___interceptor_backtrace/child_test_sig_handler/raise/abort
Ian Rogers <[email protected]>
| Newsgroups | dev.linux.lists.oe-lkp,org.kernel.vger.linux-kernel,org.kernel.vger.linux-perf-users |
|---|---|
| Message-ID | <CAP-5=fVPGoh7cf167rSU-5hfC+aQBkHa2=_Pq-1BE9KFMsOasQ@mail.gmail.com> |
On Thu, Jan 22, 2026 at 10:18 PM Oliver Sang <[email protected]> wrote: > > > 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/[email protected]/ > > > > > ================================================================= > > > ==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! That's for the update, and that's great news! The reports are really useful so a great win-win. > > [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 As the only direct leak this is key here. There's limited detail due to the inlining but I believe this is the leak fixed here: https://lore.kernel.org/lkml/[email protected]/ and is being carried in the perf-tools-next tree: https://web.git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git/commit/?h=perf-tools-next&id=92d65d9c31621befe0a5f7c0bd43bd217613c6b6 It has a fixes tag and so hopefully this means it will flow out nicely but perhaps it is a candidate for v6.19 rc fixes PR. Thanks, Ian > #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/[email protected] > > > > > > > > > > > > -- > > > 0-DAY CI Kernel Test Service > > > https://github.com/intel/lkp-tests/wiki > > >