2022-06-13 03:25:49

by kernel test robot

[permalink] [raw]
Subject: [KVM] a5202946dc: kernel-selftests.kvm.make_fail



Greeting,

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

commit: a5202946dc7b20bf2abe1bd35adf2f46aa155ac0 ("KVM: selftests: Add a test to get/set triple fault event")
https://git.kernel.org/cgit/virt/kvm/kvm.git lbr-for-weijiang

in testcase: kernel-selftests
version: kernel-selftests-x86_64-d889b151-1_20220608
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: 8 threads Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz with 28G 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 <[email protected]>



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/triple_fault_event_test.c /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-a5202946dc7b20bf2abe1bd35adf2f46aa155ac0/tools/testing/selftests/kvm/libkvm.a -o /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-a5202946dc7b20bf2abe1bd35adf2f46aa155ac0/tools/testing/selftests/kvm/x86_64/triple_fault_event_test
x86_64/triple_fault_event_test.c: In function ‘main’:
x86_64/triple_fault_event_test.c:50:10: error: ‘KVM_CAP_TRIPLE_FAULT_EVENT’ undeclared (first use in this function); did you mean ‘KVM_CAP_X86_TRIPLE_FAULT_EVENT’?
50 | .cap = KVM_CAP_TRIPLE_FAULT_EVENT,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| KVM_CAP_X86_TRIPLE_FAULT_EVENT
x86_64/triple_fault_event_test.c:50:10: note: each undeclared identifier is reported only once for each function it appears in
make: *** [../lib.mk:152: /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-a5202946dc7b20bf2abe1bd35adf2f46aa155ac0/tools/testing/selftests/kvm/x86_64/triple_fault_event_test] Error 1
make: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-a5202946dc7b20bf2abe1bd35adf2f46aa155ac0/tools/testing/selftests/kvm'



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



Attachments:
(No filename) (2.81 kB)
config-5.18.0-rc7-00312-ga5202946dc7b (169.77 kB)
job-script (5.89 kB)
dmesg.xz (32.77 kB)
kernel-selftests (78.38 kB)
job.yaml (5.03 kB)
reproduce (150.00 B)
Download all attachments

2022-06-13 04:30:19

by Chenyi Qiang

[permalink] [raw]
Subject: RE: [KVM] a5202946dc: kernel-selftests.kvm.make_fail

Hi Oliver

I found this issue is already fixed by Sean in queue branch. Thanks for your testing and report.

Thanks
Chenyi

-----Original Message-----
From: Sang, Oliver <[email protected]>
Sent: Monday, June 13, 2022 9:27 AM
To: Qiang, Chenyi <[email protected]>
Cc: Paolo Bonzini <[email protected]>; Christopherson,, Sean <[email protected]>; LKML <[email protected]>; [email protected]; Hu, Robert <[email protected]>; Chen, Farrah <[email protected]>; Wei, Danmei <[email protected]>; [email protected]; lkp <[email protected]>; Hao, Xudong <[email protected]>
Subject: [KVM] a5202946dc: kernel-selftests.kvm.make_fail



Greeting,

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

commit: a5202946dc7b20bf2abe1bd35adf2f46aa155ac0 ("KVM: selftests: Add a test to get/set triple fault event") https://git.kernel.org/cgit/virt/kvm/kvm.git lbr-for-weijiang

in testcase: kernel-selftests
version: kernel-selftests-x86_64-d889b151-1_20220608
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: 8 threads Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz with 28G 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 <[email protected]>



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/triple_fault_event_test.c /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-a5202946dc7b20bf2abe1bd35adf2f46aa155ac0/tools/testing/selftests/kvm/libkvm.a -o /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-a5202946dc7b20bf2abe1bd35adf2f46aa155ac0/tools/testing/selftests/kvm/x86_64/triple_fault_event_test
x86_64/triple_fault_event_test.c: In function ‘main’:
x86_64/triple_fault_event_test.c:50:10: error: ‘KVM_CAP_TRIPLE_FAULT_EVENT’ undeclared (first use in this function); did you mean ‘KVM_CAP_X86_TRIPLE_FAULT_EVENT’?
50 | .cap = KVM_CAP_TRIPLE_FAULT_EVENT,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| KVM_CAP_X86_TRIPLE_FAULT_EVENT
x86_64/triple_fault_event_test.c:50:10: note: each undeclared identifier is reported only once for each function it appears in
make: *** [../lib.mk:152: /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-a5202946dc7b20bf2abe1bd35adf2f46aa155ac0/tools/testing/selftests/kvm/x86_64/triple_fault_event_test] Error 1
make: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-a5202946dc7b20bf2abe1bd35adf2f46aa155ac0/tools/testing/selftests/kvm'



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


2022-06-13 07:45:03

by kernel test robot

[permalink] [raw]
Subject: RE: [KVM] a5202946dc: kernel-selftests.kvm.make_fail

Hi Chenyi,

> From: Qiang, Chenyi <[email protected]>
> Sent: Monday, June 13, 2022 12:02 PM
>
> Hi Oliver
>
> I found this issue is already fixed by Sean in queue branch. Thanks for your
> testing and report.

Thanks a lot for information!

>
> Thanks
> Chenyi
>
> -----Original Message-----
> From: Sang, Oliver <[email protected]>
> Sent: Monday, June 13, 2022 9:27 AM
> To: Qiang, Chenyi <[email protected]>
> Cc: Paolo Bonzini <[email protected]>; Christopherson,, Sean
> <[email protected]>; LKML <[email protected]>;
> [email protected]; Hu, Robert <[email protected]>; Chen, Farrah
> <[email protected]>; Wei, Danmei <[email protected]>;
> [email protected]; lkp <[email protected]>; Hao, Xudong <[email protected]>
> Subject: [KVM] a5202946dc: kernel-selftests.kvm.make_fail
>
>
>
> Greeting,
>
> FYI, we noticed the following commit (built with gcc-11):
>
> commit: a5202946dc7b20bf2abe1bd35adf2f46aa155ac0 ("KVM: selftests: Add a
> test to get/set triple fault event") https://git.kernel.org/cgit/virt/kvm/kvm.git
> lbr-for-weijiang
>
> in testcase: kernel-selftests
> version: kernel-selftests-x86_64-d889b151-1_20220608
> 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: 8 threads Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz with 28G
> 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 <[email protected]>
>
>
>
> 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/triple_fault_event_test.c /usr/src/perf_selftests-x86_64-rhel-8.3-
> kselftests-
> a5202946dc7b20bf2abe1bd35adf2f46aa155ac0/tools/testing/selftests/kvm/libk
> vm.a -o /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-
> a5202946dc7b20bf2abe1bd35adf2f46aa155ac0/tools/testing/selftests/kvm/x86
> _64/triple_fault_event_test
> x86_64/triple_fault_event_test.c: In function ‘main’:
> x86_64/triple_fault_event_test.c:50:10: error:
> ‘KVM_CAP_TRIPLE_FAULT_EVENT’ undeclared (first use in this function); did you
> mean ‘KVM_CAP_X86_TRIPLE_FAULT_EVENT’?
> 50 | .cap = KVM_CAP_TRIPLE_FAULT_EVENT,
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~
> | KVM_CAP_X86_TRIPLE_FAULT_EVENT
> x86_64/triple_fault_event_test.c:50:10: note: each undeclared identifier is
> reported only once for each function it appears in
> make: *** [../lib.mk:152: /usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-
> a5202946dc7b20bf2abe1bd35adf2f46aa155ac0/tools/testing/selftests/kvm/x86
> _64/triple_fault_event_test] Error 1
> make: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-8.3-kselftests-
> a5202946dc7b20bf2abe1bd35adf2f46aa155ac0/tools/testing/selftests/kvm'
>
>
>
> 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
>
>