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: <20220524140826.GB34870@xsang-OptiPlex-9020>
Date:   Tue, 24 May 2022 22:08:26 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Like Xu <like.xu@...ux.intel.com>
Cc:     Paolo Bonzini <pbonzini@...hat.com>,
        Andi Kleen <ak@...ux.intel.com>,
        Kan Liang <kan.liang@...ux.intel.com>,
        Luwei Kang <luwei.kang@...el.com>,
        Peter Zijlstra <peterz@...radead.org>,
        LKML <linux-kernel@...r.kernel.org>,
        Linux Memory Management List <linux-mm@...ck.org>,
        linux-perf-users@...r.kernel.org, kvm@...r.kernel.org,
        lkp@...ts.01.org, lkp@...el.com, xudong.hao@...el.com
Subject: [KVM]  34e0280921: kernel-selftests.kvm.evmcs_test.fail



Greeting,

FYI, we noticed the following commit (built with gcc-11):

commit: 34e02809217325da2186f6470cf9eaee61d30f9a ("KVM: x86/pmu: Add IA32_PEBS_ENABLE MSR emulation for extended PEBS")
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master

in testcase: kernel-selftests
version: kernel-selftests-x86_64-8d3977ef-1_20220523
with following parameters:

	group: kvm
	ucode: 0xec

test-description: The kernel contains a set of "self tests" under the tools/testing/selftests/ directory. These are intended to be small unit tests to exercise individual code paths in the kernel.
test-url: https://www.kernel.org/doc/Documentation/kselftest.txt


on test machine: 4 threads Intel(R) Xeon(R) CPU E3-1225 v5 @ 3.30GHz with 16G 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 <oliver.sang@...el.com>



please be noted, besides kvm.evmcs_test, we also noticed below tests failed on
this commit, while pass on parent.

db2265f3a9ed46b3 34e02809217325da2186f6470cf
---------------- ---------------------------
       fail:runs  %reproduction    fail:runs
           |             |             |
           :6           50%           3:3     kernel-selftests.kvm.evmcs_test.fail
           :6           50%           3:3     kernel-selftests.kvm.hyperv_clock.fail
           :6           50%           3:3     kernel-selftests.kvm.smm_test.fail
           :6           50%           3:3     kernel-selftests.kvm.state_test.fail
           :6           50%           3:3     kernel-selftests.kvm.vmx_preemption_timer_test.fail



# selftests: kvm: evmcs_test
# ==== Test Assertion Failure ====
#   lib/x86_64/processor.c:1207: r == nmsrs
#   pid=9769 tid=9769 errno=7 - Argument list too long
#      1	0x000000000040d471: vcpu_save_state at processor.c:1207 (discriminator 4)
#      2	0x00000000004027eb: save_restore_vm at evmcs_test.c:180
#      3	0x000000000040253e: main at evmcs_test.c:259 (discriminator 6)
#      4	0x00007fab93f38d09: ?? ??:0
#      5	0x0000000000402639: _start at ??:?
#   Unexpected result from KVM_GET_MSRS, r: 37 (failed MSR was 0x3f1)
# Running L1 which uses EVMCS to run L2
not ok 4 selftests: kvm: evmcs_test # exit=254

...

# selftests: kvm: hyperv_clock
# ==== Test Assertion Failure ====
#   x86_64/hyperv_clock.c:199: delta_ns * 100 < (t2 - t1) * 100
#   pid=9859 tid=9859 errno=0 - Success
#      1	0x000000000040255d: host_check_tsc_msr_rdtsc at hyperv_clock.c:199
#      2	 (inlined by) main at hyperv_clock.c:223
#      3	0x00007f41b4175d09: ?? ??:0
#      4	0x0000000000402749: _start at ??:?
#   Elapsed time does not match (MSR=332900, TSC=346021)
not ok 7 selftests: kvm: hyperv_clock # exit=254

...

# selftests: kvm: smm_test
# ==== Test Assertion Failure ====
#   lib/x86_64/processor.c:1207: r == nmsrs
#   pid=10252 tid=10252 errno=7 - Argument list too long
#      1	0x000000000040c4c1: vcpu_save_state at processor.c:1207 (discriminator 4)
#      2	0x00000000004024bc: main at smm_test.c:207
#      3	0x00007fd3ac98fd09: ?? ??:0
#      4	0x0000000000402699: _start at ??:?
#   Unexpected result from KVM_GET_MSRS, r: 37 (failed MSR was 0x3f1)
not ok 19 selftests: kvm: smm_test # exit=254
# selftests: kvm: state_test
# ==== Test Assertion Failure ====
#   lib/x86_64/processor.c:1207: r == nmsrs
#   pid=10283 tid=10283 errno=7 - Argument list too long
#      1	0x000000000040d731: vcpu_save_state at processor.c:1207 (discriminator 4)
#      2	0x00000000004024e5: main at state_test.c:209 (discriminator 6)
#      3	0x00007f3d757d1d09: ?? ??:0
#      4	0x00000000004026d9: _start at ??:?
#   Unexpected result from KVM_GET_MSRS, r: 37 (failed MSR was 0x3f1)
not ok 20 selftests: kvm: state_test # exit=254
# selftests: kvm: vmx_preemption_timer_test
# ==== Test Assertion Failure ====
#   lib/x86_64/processor.c:1207: r == nmsrs
#   pid=10317 tid=10317 errno=7 - Argument list too long
#      1	0x000000000040da21: vcpu_save_state at processor.c:1207 (discriminator 4)
#      2	0x00000000004024fa: main at vmx_preemption_timer_test.c:235
#      3	0x00007f876fcf4d09: ?? ??:0
#      4	0x0000000000402759: _start at ??:?
#   Unexpected result from KVM_GET_MSRS, r: 37 (failed MSR was 0x3f1)
not ok 21 selftests: kvm: vmx_preemption_timer_test # exit=254



To reproduce:

        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        sudo bin/lkp install job.yaml           # job file is attached in this email
        bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run
        sudo bin/lkp run generated-yaml-file

        # if come across any failure that blocks the test,
        # please remove ~/.lkp and /lkp dir to run from a clean state.



-- 
0-DAY CI Kernel Test Service
https://01.org/lkp



View attachment "config-5.18.0-rc1-00160-g34e028092173" of type "text/plain" (167143 bytes)

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

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

View attachment "kernel-selftests" of type "text/plain" (344284 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ