[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20201101084151.GE31092@shao2-debian>
Date: Sun, 1 Nov 2020 16:41:51 +0800
From: kernel test robot <rong.a.chen@...el.com>
To: Oliver Upton <oupton@...gle.com>
Cc: kvm@...r.kernel.org, Paolo Bonzini <pbonzini@...hat.com>,
Sean Christopherson <sean.j.christopherson@...el.com>,
Oliver Upton <oupton@...gle.com>,
Jim Mattson <jmattson@...gle.com>,
Peter Shier <pshier@...gle.com>,
Aaron Lewis <aaronlewis@...gle.com>,
0day robot <lkp@...el.com>,
LKML <linux-kernel@...r.kernel.org>, lkp@...ts.01.org,
xudong.hao@...el.com
Subject: [selftests] fad41fa058: kernel-selftests.kvm.make_fail
Greeting,
FYI, we noticed the following commit (built with gcc-9):
commit: fad41fa05876489d76b884c83014b80731e0f60f ("[PATCH 6/6] selftests: kvm: test enforcement of paravirtual cpuid features")
url: https://github.com/0day-ci/linux/commits/Oliver-Upton/Some-fixes-and-a-test-for-KVM_CAP_ENFORCE_PV_CPUID/20201028-095033
base: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git ed8780e3f2ecc82645342d070c6b4e530532e680
in testcase: kernel-selftests
version: kernel-selftests-x86_64-b5a583fb-1_20201015
with following parameters:
group: kselftests-kvm
ucode: 0xdc
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) Core(TM) i5-6500 CPU @ 3.20GHz 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 <rong.a.chen@...el.com>
gcc -Wall -Wstrict-prototypes -Wuninitialized -O2 -g -std=gnu99 -fno-stack-protector -fno-PIE -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr/include/ -Iinclude -Ilib -Iinclude/x86_64 -I.. -c lib/assert.c -o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/lib/assert.o
gcc -Wall -Wstrict-prototypes -Wuninitialized -O2 -g -std=gnu99 -fno-stack-protector -fno-PIE -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr/include/ -Iinclude -Ilib -Iinclude/x86_64 -I.. -c lib/elf.c -o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/lib/elf.o
gcc -Wall -Wstrict-prototypes -Wuninitialized -O2 -g -std=gnu99 -fno-stack-protector -fno-PIE -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr/include/ -Iinclude -Ilib -Iinclude/x86_64 -I.. -c lib/io.c -o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/lib/io.o
gcc -Wall -Wstrict-prototypes -Wuninitialized -O2 -g -std=gnu99 -fno-stack-protector -fno-PIE -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr/include/ -Iinclude -Ilib -Iinclude/x86_64 -I.. -c lib/kvm_util.c -o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/lib/kvm_util.o
gcc -Wall -Wstrict-prototypes -Wuninitialized -O2 -g -std=gnu99 -fno-stack-protector -fno-PIE -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr/include/ -Iinclude -Ilib -Iinclude/x86_64 -I.. -c lib/sparsebit.c -o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/lib/sparsebit.o
gcc -Wall -Wstrict-prototypes -Wuninitialized -O2 -g -std=gnu99 -fno-stack-protector -fno-PIE -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr/include/ -Iinclude -Ilib -Iinclude/x86_64 -I.. -c lib/test_util.c -o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/lib/test_util.o
gcc -Wall -Wstrict-prototypes -Wuninitialized -O2 -g -std=gnu99 -fno-stack-protector -fno-PIE -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr/include/ -Iinclude -Ilib/x86_64 -Iinclude/x86_64 -I.. -c lib/x86_64/processor.c -o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/lib/x86_64/processor.o
gcc -Wall -Wstrict-prototypes -Wuninitialized -O2 -g -std=gnu99 -fno-stack-protector -fno-PIE -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr/include/ -Iinclude -Ilib/x86_64 -Iinclude/x86_64 -I.. -c lib/x86_64/vmx.c -o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/lib/x86_64/vmx.o
gcc -Wall -Wstrict-prototypes -Wuninitialized -O2 -g -std=gnu99 -fno-stack-protector -fno-PIE -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr/include/ -Iinclude -Ilib/x86_64 -Iinclude/x86_64 -I.. -c lib/x86_64/svm.c -o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/lib/x86_64/svm.o
gcc -Wall -Wstrict-prototypes -Wuninitialized -O2 -g -std=gnu99 -fno-stack-protector -fno-PIE -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr/include/ -Iinclude -Ilib/x86_64 -Iinclude/x86_64 -I.. -c lib/x86_64/ucall.c -o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/lib/x86_64/ucall.o
ar crs /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/libkvm.a /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/lib/assert.o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/lib/elf.o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/lib/io.o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/lib/kvm_util.o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/lib/sparsebit.o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/lib/test_util.o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/lib/x86_64/processor.o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/lib/x86_64/vmx.o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/lib/x86_64/svm.o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/lib/x86_64/ucall.o
gcc -Wall -Wstrict-prototypes -Wuninitialized -O2 -g -std=gnu99 -fno-stack-protector -fno-PIE -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr/include/ -Iinclude -Ix86_64 -Iinclude/x86_64 -I.. -pthread -no-pie x86_64/cr4_cpuid_sync_test.c /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kselftest_harness.h /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kselftest.h /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/libkvm.a -o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/x86_64/cr4_cpuid_sync_test
gcc -Wall -Wstrict-prototypes -Wuninitialized -O2 -g -std=gnu99 -fno-stack-protector -fno-PIE -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr/include/ -Iinclude -Ix86_64 -Iinclude/x86_64 -I.. -pthread -no-pie x86_64/evmcs_test.c /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kselftest_harness.h /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kselftest.h /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/libkvm.a -o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/x86_64/evmcs_test
gcc -Wall -Wstrict-prototypes -Wuninitialized -O2 -g -std=gnu99 -fno-stack-protector -fno-PIE -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr/include/ -Iinclude -Ix86_64 -Iinclude/x86_64 -I.. -pthread -no-pie x86_64/hyperv_cpuid.c /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kselftest_harness.h /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kselftest.h /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/libkvm.a -o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/x86_64/hyperv_cpuid
gcc -Wall -Wstrict-prototypes -Wuninitialized -O2 -g -std=gnu99 -fno-stack-protector -fno-PIE -I../../../../tools/include -I../../../../tools/arch/x86/include -I../../../../usr/include/ -Iinclude -Ix86_64 -Iinclude/x86_64 -I.. -pthread -no-pie x86_64/kvm_pv_test.c /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kselftest_harness.h /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kselftest.h /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/libkvm.a -o /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/x86_64/kvm_pv_test
x86_64/kvm_pv_test.c:47:37: warning: ‘struct ex_regs’ declared inside parameter list will not be visible outside of this definition or declaration
static void guest_gp_handler(struct ex_regs *regs)
^~~~~~~
x86_64/kvm_pv_test.c: In function ‘guest_gp_handler’:
x86_64/kvm_pv_test.c:49:44: error: dereferencing pointer to incomplete type ‘struct ex_regs’
unsigned char *rip = (unsigned char *)regs->rip;
^~
x86_64/kvm_pv_test.c: In function ‘main’:
x86_64/kvm_pv_test.c:228:2: warning: implicit declaration of function ‘vm_init_descriptor_tables’ [-Wimplicit-function-declaration]
vm_init_descriptor_tables(vm);
^~~~~~~~~~~~~~~~~~~~~~~~~
x86_64/kvm_pv_test.c:229:2: warning: implicit declaration of function ‘vcpu_init_descriptor_tables’ [-Wimplicit-function-declaration]
vcpu_init_descriptor_tables(vm, VCPU_ID);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
x86_64/kvm_pv_test.c:230:2: warning: implicit declaration of function ‘vm_handle_exception’ [-Wimplicit-function-declaration]
vm_handle_exception(vm, GP_VECTOR, guest_gp_handler);
^~~~~~~~~~~~~~~~~~~
make: *** [../lib.mk:139: /usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/x86_64/kvm_pv_test] Error 1
make: *** Deleting file '/usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm/x86_64/kvm_pv_test'
make: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-7.6-kselftests-fad41fa05876489d76b884c83014b80731e0f60f/tools/testing/selftests/kvm'
To reproduce:
git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp install job.yaml # job file is attached in this email
bin/lkp run job.yaml
Thanks,
Rong Chen
View attachment "config-5.10.0-rc1-00034-gfad41fa05876" of type "text/plain" (211440 bytes)
View attachment "job-script" of type "text/plain" (6101 bytes)
Download attachment "kmsg.xz" of type "application/x-xz" (30056 bytes)
View attachment "kernel-selftests" of type "text/plain" (52199 bytes)
View attachment "job.yaml" of type "text/plain" (5025 bytes)
View attachment "reproduce" of type "text/plain" (166 bytes)
Powered by blists - more mailing lists