linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [linus:master] [perf test]  34e271ae55: kmsg.sanitizer.indirect_leak/calloc/zalloc/dso__new_id/__dsos__addnew_id/__dsos__findnew_id/dsos__findnew_id
@ 2025-12-10  8:09 kernel test robot
  2025-12-10 19:03 ` Ian Rogers
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2025-12-10  8:09 UTC (permalink / raw)
  To: Namhyung Kim
  Cc: oe-lkp, lkp, linux-kernel, Ian Rogers, linux-perf-users,
	oliver.sang



Hello,


besides the indirect_leak mentioned in title, we also observe below difference
if comparing to parent commit.


4fba95fc383f9231 34e271ae55382fbdb04f3e13e85
---------------- ---------------------------
       fail:runs  %reproduction    fail:runs
           |             |             |
           :8           75%           6:6     kmsg.sanitizer.direct_leak/malloc/map__get/maps__find_symbol_by_name_cb/maps__for_each_map/maps__find_symbol_by_name/machine__find_kernel_symbol_by_name
           :8           75%           6:6     kmsg.sanitizer.indirect_leak/calloc/map__new2/__machine__create_kernel_maps/machine__create_kernel_maps/test__kallsyms_split/run_test_child
           :8           75%           6:6     kmsg.sanitizer.indirect_leak/calloc/symbol__new/map__process_kallsym_symbol/kallsyms__parse/dso__load_all_kallsyms/__dso__load_kallsyms
           :8           75%           6:6     kmsg.sanitizer.indirect_leak/calloc/zalloc/dso__new_id/__dsos__addnew_id/__dsos__findnew_id/dsos__findnew_id
           :8           75%           6:6     kmsg.sanitizer.indirect_leak/malloc/dso__get/map__init/map__new2/__machine__create_kernel_maps/machine__create_kernel_maps
           :8           75%           6:6     kmsg.sanitizer.indirect_leak/malloc/symbols__sort_by_name/dso__sort_by_name/map__find_symbol_by_name_idx/map__find_symbol_by_name/maps__find_symbol_by_name_cb


but we don't have enough knowledge to understand if they are expected by the
change is 34e271ae55, so just make out below report FYI.


kernel test robot noticed "kmsg.sanitizer.indirect_leak/calloc/zalloc/dso__new_id/__dsos__addnew_id/__dsos__findnew_id/dsos__findnew_id" on:

commit: 34e271ae55382fbdb04f3e13e856457d8e0dee45 ("perf test: Add kallsyms split test")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master

[test failed on linux-next/master 6987d58a9cbc5bd57c983baa514474a86c945d56]

in testcase: perf-sanity-tests
version: 
with following parameters:

	perf_compiler: clang
	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/202512101502.f3819cd3-lkp@intel.com


Indirect leak of 386 byte(s) in 1 object(s) allocated from:
    #0 0x7f0248972610 in calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:77
    #1 0x561eb21740b6 in zalloc ../../lib/zalloc.c:8
    #2 0x561eb2529d8f in dso__new_id util/dso.c:1527
    #3 0x561eb25327bb in __dsos__addnew_id util/dsos.c:329
    #4 0x561eb253287d in __dsos__findnew_id util/dsos.c:351
    #5 0x561eb2532907 in dsos__findnew_id util/dsos.c:358
    #6 0x561eb25d267f in machine__findnew_dso_id util/machine.c:3191
    #7 0x561eb25d26ce in machine__findnew_dso util/machine.c:3196
    #8 0x561eb252778e in machine__findnew_kernel util/dso.c:1338
    #9 0x561eb25bbfe0 in machine__get_kernel util/machine.c:969
    #10 0x561eb25c0d10 in machine__create_kernel_maps util/machine.c:1545
    #11 0x561eb231f3be in test__kallsyms_split tests/kallsyms-split.c:117
    #12 0x561eb223b4d8 in run_test_child tests/builtin-test.c:340
    #13 0x561eb218d899 in start_command /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-34e271ae55382fbdb04f3e13e856457d8e0dee45/tools/lib/subcmd/run-command.c:128
    #14 0x561eb223d9b4 in start_test tests/builtin-test.c:545
    #15 0x561eb223e920 in __cmd_test tests/builtin-test.c:648
    #16 0x561eb22412d3 in cmd_test tests/builtin-test.c:850
    #17 0x561eb214751d in run_builtin /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-34e271ae55382fbdb04f3e13e856457d8e0dee45/tools/perf/perf.c:349
    #18 0x561eb2147e0e in handle_internal_command /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-34e271ae55382fbdb04f3e13e856457d8e0dee45/tools/perf/perf.c:401
    #19 0x561eb2148364 in run_argv /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-34e271ae55382fbdb04f3e13e856457d8e0dee45/tools/perf/perf.c:445
    #20 0x561eb2148b0b in main /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-34e271ae55382fbdb04f3e13e856457d8e0dee45/tools/perf/perf.c:553
    #21 0x7f023e69aca7  (/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)


more details are in below link.


The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20251210/202512101502.f3819cd3-lkp@intel.com



-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linus:master] [perf test] 34e271ae55: kmsg.sanitizer.indirect_leak/calloc/zalloc/dso__new_id/__dsos__addnew_id/__dsos__findnew_id/dsos__findnew_id
  2025-12-10  8:09 [linus:master] [perf test] 34e271ae55: kmsg.sanitizer.indirect_leak/calloc/zalloc/dso__new_id/__dsos__addnew_id/__dsos__findnew_id/dsos__findnew_id kernel test robot
@ 2025-12-10 19:03 ` Ian Rogers
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Rogers @ 2025-12-10 19:03 UTC (permalink / raw)
  To: kernel test robot
  Cc: Namhyung Kim, oe-lkp, lkp, linux-kernel, linux-perf-users

On Wed, Dec 10, 2025 at 12:09 AM kernel test robot
<oliver.sang@intel.com> wrote:
>
>
>
> Hello,
>
>
> besides the indirect_leak mentioned in title, we also observe below difference
> if comparing to parent commit.
>
>
> 4fba95fc383f9231 34e271ae55382fbdb04f3e13e85
> ---------------- ---------------------------
>        fail:runs  %reproduction    fail:runs
>            |             |             |
>            :8           75%           6:6     kmsg.sanitizer.direct_leak/malloc/map__get/maps__find_symbol_by_name_cb/maps__for_each_map/maps__find_symbol_by_name/machine__find_kernel_symbol_by_name
>            :8           75%           6:6     kmsg.sanitizer.indirect_leak/calloc/map__new2/__machine__create_kernel_maps/machine__create_kernel_maps/test__kallsyms_split/run_test_child
>            :8           75%           6:6     kmsg.sanitizer.indirect_leak/calloc/symbol__new/map__process_kallsym_symbol/kallsyms__parse/dso__load_all_kallsyms/__dso__load_kallsyms
>            :8           75%           6:6     kmsg.sanitizer.indirect_leak/calloc/zalloc/dso__new_id/__dsos__addnew_id/__dsos__findnew_id/dsos__findnew_id
>            :8           75%           6:6     kmsg.sanitizer.indirect_leak/malloc/dso__get/map__init/map__new2/__machine__create_kernel_maps/machine__create_kernel_maps
>            :8           75%           6:6     kmsg.sanitizer.indirect_leak/malloc/symbols__sort_by_name/dso__sort_by_name/map__find_symbol_by_name_idx/map__find_symbol_by_name/maps__find_symbol_by_name_cb
>
>
> but we don't have enough knowledge to understand if they are expected by the
> change is 34e271ae55, so just make out below report FYI.
>
>
> kernel test robot noticed "kmsg.sanitizer.indirect_leak/calloc/zalloc/dso__new_id/__dsos__addnew_id/__dsos__findnew_id/dsos__findnew_id" on:
>
> commit: 34e271ae55382fbdb04f3e13e856457d8e0dee45 ("perf test: Add kallsyms split test")
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master
>
> [test failed on linux-next/master 6987d58a9cbc5bd57c983baa514474a86c945d56]
>
> in testcase: perf-sanity-tests
> version:
> with following parameters:
>
>         perf_compiler: clang
>         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/202512101502.f3819cd3-lkp@intel.com

Thanks! Reproduced and posted a fix:
https://lore.kernel.org/linux-perf-users/20251210190141.12725-1-irogers@google.com/

Ian

>
> Indirect leak of 386 byte(s) in 1 object(s) allocated from:
>     #0 0x7f0248972610 in calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:77
>     #1 0x561eb21740b6 in zalloc ../../lib/zalloc.c:8
>     #2 0x561eb2529d8f in dso__new_id util/dso.c:1527
>     #3 0x561eb25327bb in __dsos__addnew_id util/dsos.c:329
>     #4 0x561eb253287d in __dsos__findnew_id util/dsos.c:351
>     #5 0x561eb2532907 in dsos__findnew_id util/dsos.c:358
>     #6 0x561eb25d267f in machine__findnew_dso_id util/machine.c:3191
>     #7 0x561eb25d26ce in machine__findnew_dso util/machine.c:3196
>     #8 0x561eb252778e in machine__findnew_kernel util/dso.c:1338
>     #9 0x561eb25bbfe0 in machine__get_kernel util/machine.c:969
>     #10 0x561eb25c0d10 in machine__create_kernel_maps util/machine.c:1545
>     #11 0x561eb231f3be in test__kallsyms_split tests/kallsyms-split.c:117
>     #12 0x561eb223b4d8 in run_test_child tests/builtin-test.c:340
>     #13 0x561eb218d899 in start_command /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-34e271ae55382fbdb04f3e13e856457d8e0dee45/tools/lib/subcmd/run-command.c:128
>     #14 0x561eb223d9b4 in start_test tests/builtin-test.c:545
>     #15 0x561eb223e920 in __cmd_test tests/builtin-test.c:648
>     #16 0x561eb22412d3 in cmd_test tests/builtin-test.c:850
>     #17 0x561eb214751d in run_builtin /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-34e271ae55382fbdb04f3e13e856457d8e0dee45/tools/perf/perf.c:349
>     #18 0x561eb2147e0e in handle_internal_command /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-34e271ae55382fbdb04f3e13e856457d8e0dee45/tools/perf/perf.c:401
>     #19 0x561eb2148364 in run_argv /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-34e271ae55382fbdb04f3e13e856457d8e0dee45/tools/perf/perf.c:445
>     #20 0x561eb2148b0b in main /usr/src/perf_selftests-x86_64-rhel-9.4-bpf-34e271ae55382fbdb04f3e13e856457d8e0dee45/tools/perf/perf.c:553
>     #21 0x7f023e69aca7  (/lib/x86_64-linux-gnu/libc.so.6+0x29ca7) (BuildId: def5460e3cee00bfee25b429c97bcc4853e5b3a8)
>
>
> more details are in below link.
>
>
> The kernel config and materials to reproduce are available at:
> https://download.01.org/0day-ci/archive/20251210/202512101502.f3819cd3-lkp@intel.com
>
>
>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-12-10 19:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-10  8:09 [linus:master] [perf test] 34e271ae55: kmsg.sanitizer.indirect_leak/calloc/zalloc/dso__new_id/__dsos__addnew_id/__dsos__findnew_id/dsos__findnew_id kernel test robot
2025-12-10 19:03 ` Ian Rogers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).