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]
Date:   Sun, 2 Apr 2023 18:41:36 +0800
From:   kernel test robot <yujie.liu@...el.com>
To:     Ian Rogers <irogers@...gle.com>
CC:     <oe-lkp@...ts.linux.dev>, <lkp@...el.com>,
        <linux-kernel@...r.kernel.org>,
        Arnaldo Carvalho de Melo <acme@...hat.com>,
        Kajol Jain <kjain@...ux.ibm.com>,
        Adrian Hunter <adrian.hunter@...el.com>,
        Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
        Caleb Biggers <caleb.biggers@...el.com>,
        Florian Fischer <florian.fischer@...q.space>,
        Ingo Molnar <mingo@...hat.com>,
        James Clark <james.clark@....com>,
        "Jing Zhang" <renyu.zj@...ux.alibaba.com>,
        Jiri Olsa <jolsa@...nel.org>,
        John Garry <john.g.garry@...cle.com>,
        Kan Liang <kan.liang@...ux.intel.com>,
        "Kang Minchul" <tegongkang@...il.com>,
        Kim Phillips <kim.phillips@....com>,
        Leo Yan <leo.yan@...aro.org>,
        Mark Rutland <mark.rutland@....com>,
        Mike Leach <mike.leach@...aro.org>,
        Namhyung Kim <namhyung@...nel.org>,
        Perry Taylor <perry.taylor@...el.com>,
        Peter Zijlstra <peterz@...radead.org>,
        "Ravi Bangoria" <ravi.bangoria@....com>,
        Rob Herring <robh@...nel.org>,
        "Sandipan Das" <sandipan.das@....com>,
        Stephane Eranian <eranian@...gle.com>,
        "Will Deacon" <will@...nel.org>,
        Xing Zhengjun <zhengjun.xing@...ux.intel.com>,
        <linux-arm-kernel@...ts.infradead.org>,
        <linux-perf-users@...r.kernel.org>
Subject: [linus:master] [perf pmu] f8ea2c1524:
 perf-sanity-tests.Test_event_parsing.fail

Hello,

kernel test robot noticed perf-sanity-tests.Test_event_parsing.fail due to commit (built with gcc-11):

commit: f8ea2c1524de42a6bae55cef5713d1229030324b ("perf pmu-events: Introduce pmu_metrics_table")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master

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

	perf_compiler: clang

on test machine: 8 threads 1 sockets Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz (Kaby Lake) with 32G memory

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):


If you fix the issue, kindly add following tag
| Reported-by: kernel test robot <yujie.liu@...el.com>
| Link: https://lore.kernel.org/oe-lkp/202304021833.30a4e73e-yujie.liu@intel.com


2023-04-01 20:56:22 sudo /usr/src/perf_selftests-x86_64-rhel-8.3-func-f8ea2c1524de42a6bae55cef5713d1229030324b/tools/perf/perf test 6
  6: Parse event definition strings                                  :
  6.1: Test event parsing                                            : FAILED!


$ ./perf test 6 -v
  6: Parse event definition strings                                  :
  6.1: Test event parsing                                            :
--- start ---
test child forked, pid 10640
running test 0 'syscalls:sys_enter_openat'
Using CPUID GenuineIntel-6-9E-9
running test 1 'syscalls:*'
running test 2 'r1a'
running test 3 '1:1'
running test 4 'instructions'
running test 5 'cycles/period=100000,config2/'
running test 6 'faults'
running test 7 'L1-dcache-load-miss'
running test 8 'mem:0'
running test 9 'mem:0:x'
running test 10 'mem:0:r'
running test 11 'mem:0:w'
running test 12 'syscalls:sys_enter_openat:k'
running test 13 'syscalls:*:u'
running test 14 'r1a:kp'
running test 15 '1:1:hp'
running test 16 'instructions:h'
running test 17 'faults:u'
running test 18 'L1-dcache-load-miss:kp'
running test 19 'mem:0:u'
running test 20 'mem:0:x:k'
running test 21 'mem:0:r:hp'
running test 22 'mem:0:w:up'
running test 23 'r1,syscalls:sys_enter_openat:k,1:1:hp'
running test 24 'instructions:G'
running test 25 'instructions:H'
running test 26 'mem:0:rw'
running test 27 'mem:0:rw:kp'
running test 28 '{instructions:k,cycles:upp}'
running test 29 '{faults:k,cache-references}:u,cycles:k'
running test 30 'group1{syscalls:sys_enter_openat:H,cycles:kppp},group2{cycles,1:3}:G,instructions:u'
running test 31 '{cycles:u,instructions:kp}:p'
running test 32 '{cycles,instructions}:G,{cycles:G,instructions:G},cycles'
running test 33 '*:*'
  [i915:intel_memory_cxsr] function str_on_off not defined
  [i915:g4x_wm] function str_yes_no not defined
  [i915:intel_plane_update_noarm] function drm_rect_width not defined
  [i915:intel_plane_update_arm] function drm_rect_width not defined
  [kvmmmu:kvm_mmu_get_page] bad op token {
  [kvmmmu:kvm_mmu_sync_page] bad op token {
  [kvmmmu:kvm_mmu_unsync_page] bad op token {
  [kvmmmu:kvm_mmu_prepare_zap_page] bad op token {
  [kvm:kvm_inj_exception] bad op token }
  Error: expected type 5 but read 0
  [libata:ata_qc_prep] function libata_trace_parse_subcmd not defined
  [libata:ata_qc_issue] function libata_trace_parse_subcmd not defined
  [libata:ata_qc_complete_internal] function libata_trace_parse_qc_flags not defined
  [libata:ata_qc_complete_failed] function libata_trace_parse_qc_flags not defined
  [libata:ata_qc_complete_done] function libata_trace_parse_qc_flags not defined
  [libata:ata_tf_load] function libata_trace_parse_subcmd not defined
  [libata:ata_exec_command] function libata_trace_parse_subcmd not defined
  [libata:ata_bmdma_setup] function libata_trace_parse_subcmd not defined
  [libata:ata_bmdma_start] function libata_trace_parse_subcmd not defined
  [libata:ata_bmdma_stop] function libata_trace_parse_subcmd not defined
  [libata:ata_bmdma_status] function libata_trace_parse_host_stat not defined
  [libata:ata_eh_link_autopsy] function libata_trace_parse_eh_action not defined
  [libata:ata_eh_link_autopsy_qc] function libata_trace_parse_qc_flags not defined
  [libata:ata_eh_about_to_do] function libata_trace_parse_eh_action not defined
  [libata:ata_eh_done] function libata_trace_parse_eh_action not defined
  [libata:ata_sff_hsm_state] function libata_trace_parse_qc_flags not defined
  [libata:ata_sff_hsm_command_complete] function libata_trace_parse_qc_flags not defined
  [libata:ata_sff_port_intr] function libata_trace_parse_qc_flags not defined
  [libata:ata_sff_pio_transfer_data] function libata_trace_parse_tf_flags not defined
  [libata:atapi_pio_transfer_data] function libata_trace_parse_tf_flags not defined
  [libata:atapi_send_cdb] function libata_trace_parse_tf_flags not defined
  [sunrpc:svc_authenticate] function __get_sockaddr not defined
  [sunrpc:svc_defer] function __get_sockaddr not defined
  [sunrpc:svc_drop] function __get_sockaddr not defined
  [sunrpc:svc_send] function __get_sockaddr not defined
  [sunrpc:svc_stats_latency] function __get_sockaddr not defined
  [sunrpc:svc_xprt_create_err] function __get_sockaddr not defined
  [sunrpc:svc_xprt_enqueue] function __get_sockaddr not defined
  [sunrpc:svc_xprt_dequeue] function __get_sockaddr not defined
  [sunrpc:svc_xprt_no_write_space] function __get_sockaddr not defined
  [sunrpc:svc_xprt_close] function __get_sockaddr not defined
  [sunrpc:svc_xprt_detach] function __get_sockaddr not defined
  [sunrpc:svc_xprt_free] function __get_sockaddr not defined
  [sunrpc:svc_xprt_accept] function __get_sockaddr not defined
  [sunrpc:svc_defer_drop] function __get_sockaddr not defined
  [sunrpc:svc_defer_queue] function __get_sockaddr not defined
  [sunrpc:svc_defer_recv] function __get_sockaddr not defined
  [ras:extlog_mem_event] function cper_severity_str not defined
  [ras:mc_event] function mc_event_error_type not defined
  [ucsi:ucsi_run_command] function ucsi_cmd_str not defined
  [ucsi:ucsi_reset_ppm] function ucsi_cmd_str not defined
  [ucsi:ucsi_register_altmode] function ucsi_recipient_str not defined
  [xhci-hcd:xhci_handle_event] function xhci_ring_type_string not defined
  [xhci-hcd:xhci_handle_command] function xhci_ring_type_string not defined
  [xhci-hcd:xhci_handle_transfer] function xhci_ring_type_string not defined
  [xhci-hcd:xhci_queue_trb] function xhci_ring_type_string not defined
  [xhci-hcd:xhci_dbc_handle_event] function xhci_ring_type_string not defined
  [xhci-hcd:xhci_dbc_handle_transfer] function xhci_ring_type_string not defined
  [xhci-hcd:xhci_dbc_gadget_ep_queue] function xhci_ring_type_string not defined
  [xhci-hcd:xhci_handle_cmd_stop_ep] function xhci_decode_ep_context not defined
  [xhci-hcd:xhci_handle_cmd_set_deq_ep] function xhci_decode_ep_context not defined
  [xhci-hcd:xhci_handle_cmd_reset_ep] function xhci_decode_ep_context not defined
  [xhci-hcd:xhci_handle_cmd_config_ep] function xhci_decode_ep_context not defined
  [xhci-hcd:xhci_add_endpoint] function xhci_decode_ep_context not defined
  [xhci-hcd:xhci_alloc_dev] function xhci_decode_slot_context not defined
  [xhci-hcd:xhci_free_dev] function xhci_decode_slot_context not defined
  [xhci-hcd:xhci_handle_cmd_disable_slot] function xhci_decode_slot_context not defined
  [xhci-hcd:xhci_discover_or_reset_device] function xhci_decode_slot_context not defined
  [xhci-hcd:xhci_setup_device_slot] function xhci_decode_slot_context not defined
  [xhci-hcd:xhci_handle_cmd_addr_dev] function xhci_decode_slot_context not defined
  [xhci-hcd:xhci_handle_cmd_reset_dev] function xhci_decode_slot_context not defined
  [xhci-hcd:xhci_handle_cmd_set_deq] function xhci_decode_slot_context not defined
  [xhci-hcd:xhci_configure_endpoint] function xhci_decode_slot_context not defined
  [xhci-hcd:xhci_address_ctrl_ctx] function xhci_decode_ctrl_ctx not defined
  [xhci-hcd:xhci_configure_endpoint_ctrl_ctx] function xhci_decode_ctrl_ctx not defined
  [xhci-hcd:xhci_ring_alloc] function xhci_ring_type_string not defined
  [xhci-hcd:xhci_ring_free] function xhci_ring_type_string not defined
  [xhci-hcd:xhci_ring_expansion] function xhci_ring_type_string not defined
  [xhci-hcd:xhci_inc_enq] function xhci_ring_type_string not defined
  [xhci-hcd:xhci_inc_deq] function xhci_ring_type_string not defined
  [xhci-hcd:xhci_handle_port_status] function xhci_decode_portsc not defined
  [xhci-hcd:xhci_get_port_status] function xhci_decode_portsc not defined
  [xhci-hcd:xhci_hub_status_data] function xhci_decode_portsc not defined
  [xhci-hcd:xhci_ring_ep_doorbell] function xhci_decode_doorbell not defined
  [xhci-hcd:xhci_ring_host_doorbell] function xhci_decode_doorbell not defined
  Error: expected type 4 but read 5
  Error: expected type 5 but read 0
  Error: expected type 4 but read 5
  Error: expected type 5 but read 0
  [scsi:scsi_dispatch_cmd_start] function scsi_trace_parse_cdb not defined
  [scsi:scsi_dispatch_cmd_error] function scsi_trace_parse_cdb not defined
  [scsi:scsi_dispatch_cmd_done] function scsi_trace_parse_cdb not defined
  [scsi:scsi_dispatch_cmd_timeout] function scsi_trace_parse_cdb not defined
  [intel_iommu:prq_report] function decode_prq_descriptor not defined
  [jbd2:jbd2_run_stats] function jiffies_to_msecs not defined
  [jbd2:jbd2_checkpoint_stats] function jiffies_to_msecs not defined
  [kmem:mm_page_alloc_extfrag] function __builtin_choose_expr not defined
  Error: expected type 4 but read 5
running test 34 '{cycles,cache-misses:G}:H'
running test 35 '{cycles,cache-misses:H}:G'
running test 36 '{cycles:G,cache-misses:H}:u'
running test 37 '{cycles:G,cache-misses:H}:uG'
running test 38 '{cycles,cache-misses,branch-misses}:S'
running test 39 '{instructions,branch-misses}:Su'
running test 40 'instructions:uDp'
running test 41 '{cycles,cache-misses,branch-misses}:D'
running test 42 'mem:0/1'
running test 43 'mem:0/2:w'
running test 44 'mem:0/4:rw:u'
running test 45 'instructions:I'
running test 46 'instructions:kIG'
running test 47 'task-clock:P,cycles'
running test 48 'instructions/name=insn/'
running test 49 'r1234/name=rawpmu/'
running test 50 '4:0x6530160/name=numpmu/'
running test 51 'L1-dcache-misses/name=cachepmu/'
running test 52 'intel_pt//u'
running test 53 'cycles/name='COMPLEX_CYCLES_NAME:orig=cycles,desc=chip-clock-ticks'/Duk'
running test 54 'cycles//u'
running test 55 'cycles:k'
running test 56 'instructions:uep'
running test 57 '{cycles,cache-misses,branch-misses}:e'

=================================================================
==10640==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 2 byte(s) in 1 object(s) allocated from:
    #0 0x7f4139253817 in __interceptor_strdup ../../../../src/libsanitizer/asan/asan_interceptors.cpp:452
    #1 0x7f4137a4fff9  (/usr/lib/x86_64-linux-gnu/libtraceevent.so.1+0x5ff9)
    #2 0x7f4137a503e3  (/usr/lib/x86_64-linux-gnu/libtraceevent.so.1+0x63e3)
    #3 0x7f4137a526b6  (/usr/lib/x86_64-linux-gnu/libtraceevent.so.1+0x86b6)
    #4 0x7f4137a54a6f  (/usr/lib/x86_64-linux-gnu/libtraceevent.so.1+0xaa6f)
    #5 0x7f4137a515e4  (/usr/lib/x86_64-linux-gnu/libtraceevent.so.1+0x75e4)
    #6 0x7f4137a51d89  (/usr/lib/x86_64-linux-gnu/libtraceevent.so.1+0x7d89)
    #7 0x7f4137a54c18  (/usr/lib/x86_64-linux-gnu/libtraceevent.so.1+0xac18)
    #8 0x7f4137a515e4  (/usr/lib/x86_64-linux-gnu/libtraceevent.so.1+0x75e4)
    #9 0x7f4137a54d5c  (/usr/lib/x86_64-linux-gnu/libtraceevent.so.1+0xad5c)
    #10 0x7f4137a54fb9  (/usr/lib/x86_64-linux-gnu/libtraceevent.so.1+0xafb9)
    #11 0x7f4137a5c47d  (/usr/lib/x86_64-linux-gnu/libtraceevent.so.1+0x1247d)
    #12 0x7f4137a5c664  (/usr/lib/x86_64-linux-gnu/libtraceevent.so.1+0x12664)
    #13 0x7f4137a5c6f7 in tep_parse_format (/usr/lib/x86_64-linux-gnu/libtraceevent.so.1+0x126f7)
    #14 0x55a6e2c0fee2 in tp_format util/trace-event.c:94
    #15 0x55a6e2c10549 in trace_event__tp_format util/trace-event.c:109
    #16 0x55a6e29c6a25 in evsel__newtp_idx util/evsel.c:503
    #17 0x55a6e2a0abc2 in add_tracepoint util/parse-events.c:485
    #18 0x55a6e2a0abc2 in add_tracepoint_multi_event util/parse-events.c:538
    #19 0x55a6e2a0abc2 in add_tracepoint_event util/parse-events.c:558
    #20 0x55a6e2a23ed3 in add_tracepoint_multi_sys util/parse-events.c:590
    #21 0x55a6e2a23ed3 in parse_events_add_tracepoint util/parse-events.c:1342
    #22 0x55a6e2bd64ef in parse_events_parse util/parse-events.y:628
    #23 0x55a6e2a156ff in parse_events__scanner util/parse-events.c:2188
    #24 0x55a6e2a156ff in __parse_events util/parse-events.c:2260
    #25 0x55a6e2886920 in parse_events /usr/src/perf_selftests-x86_64-rhel-8.3-func-f8ea2c1524de42a6bae55cef5713d1229030324b/tools/perf/util/parse-events.h:35
    #26 0x55a6e2886920 in test_event tests/parse-events.c:2077
    #27 0x55a6e2890017 in test_events tests/parse-events.c:2137
    #28 0x55a6e2890017 in test__events2 tests/parse-events.c:2149
    #29 0x55a6e2867d11 in run_test tests/builtin-test.c:238
    #30 0x55a6e2867d11 in test_and_print tests/builtin-test.c:267
    #31 0x55a6e286a8b7 in __cmd_test tests/builtin-test.c:438
    #32 0x55a6e286a8b7 in cmd_test tests/builtin-test.c:561
    #33 0x55a6e2928207 in run_builtin /usr/src/perf_selftests-x86_64-rhel-8.3-func-f8ea2c1524de42a6bae55cef5713d1229030324b/tools/perf/perf.c:330
    #34 0x55a6e2928de9 in handle_internal_command /usr/src/perf_selftests-x86_64-rhel-8.3-func-f8ea2c1524de42a6bae55cef5713d1229030324b/tools/perf/perf.c:384
    #35 0x55a6e25fc4f9 in run_argv /usr/src/perf_selftests-x86_64-rhel-8.3-func-f8ea2c1524de42a6bae55cef5713d1229030324b/tools/perf/perf.c:428
    #36 0x55a6e25fc4f9 in main /usr/src/perf_selftests-x86_64-rhel-8.3-func-f8ea2c1524de42a6bae55cef5713d1229030324b/tools/perf/perf.c:562
    #37 0x7f413844dd09 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23d09)

SUMMARY: AddressSanitizer: 2 byte(s) leaked in 1 allocation(s).
test child finished with 1
---- end ----
Parse event definition strings subtest 1: FAILED!


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

View attachment "config-6.2.0-rc5-00099-gf8ea2c1524de" of type "text/plain" (169518 bytes)

View attachment "job-script" of type "text/plain" (5351 bytes)

Download attachment "dmesg.xz" of type "application/x-xz" (51104 bytes)

View attachment "perf-sanity-tests" of type "text/plain" (53856 bytes)

View attachment "job.yaml" of type "text/plain" (4774 bytes)

View attachment "reproduce" of type "text/plain" (13301 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ