ept test fails in kvm_unit_tests

Bug #1824228 reported by Sean Feole
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned
linux-azure (Ubuntu)
New
Undecided
Unassigned
Bionic
New
Undecided
Unassigned
Disco
Won't Fix
Undecided
Unassigned
Eoan
New
Undecided
Unassigned
linux-kvm (Ubuntu)
New
Undecided
Unassigned
Bionic
New
Undecided
Unassigned
Disco
Won't Fix
Undecided
Unassigned
Eoan
New
Undecided
Unassigned
linux-oracle (Ubuntu)
New
Undecided
Unassigned
Bionic
New
Undecided
Unassigned
Disco
Won't Fix
Undecided
Unassigned
Eoan
New
Undecided
Unassigned

Bug Description

Reproducible: Yes,
Series: cosmic
Kernel: "linux-azure 4.18.0-1015.15"
Steps:

1.) apt-get install -y build-essential cpu-checker qemu-kvm git gcc-multilib
2.) git clone --depth=1 https://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git
3.) cd kvm-unit-tests; ./configure; make
4.) sudo TESTNAME=ept TIMEOUT=90s ACCEL= ./x86/run x86/vmx.flat -smp 1 -cpu host,host-phys-bits,+vmx -m 2560 -append "ept_access*"
timeout -k 1s --foreground 90s /usr/bin/qemu-system-x86_64 -nodefaults -device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4 -vnc none -serial stdio -device pci-testdev -machine accel=kvm -kernel x86/vmx.flat -smp 1 -cpu host,host-phys-bits,+vmx -m 2560 -append ept_access* # -initrd /tmp/tmp.RcwfbGP5Ou
enabling apic
paging enabled
cr0 = 80010011
cr3 = 477000
cr4 = 20

Test suite: ept_access_test_not_present

Test suite: ept_access_test_read_only

Test suite: ept_access_test_write_only

Test suite: ept_access_test_read_write

Test suite: ept_access_test_execute_only

Test suite: ept_access_test_read_execute

Test suite: ept_access_test_write_execute

Test suite: ept_access_test_read_write_execute

Test suite: ept_access_test_reserved_bits

Test suite: ept_access_test_ignored_bits

Test suite: ept_access_test_paddr_not_present_ad_disabled

Test suite: ept_access_test_paddr_not_present_ad_enabled
Host skipping test: EPT AD bits not supported.

Test suite: ept_access_test_paddr_read_only_ad_disabled
EPT_VLT_RD expected
FAIL: x86/vmx_tests.c:2380: Expectation failed: (expected_qual) == (qual)
 LHS: 0x000000000000008b - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1011 - 139
 RHS: 0x000000000000008a - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1010 - 138
 STACK: 40f328 40f8fb 40fb0b 40ff49 401577 4039d0 400312
EPT_VLT_RD expected
FAIL: x86/vmx_tests.c:2380: Expectation failed: (expected_qual) == (qual)
 LHS: 0x000000000000008b - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1011 - 139
 RHS: 0x000000000000008a - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1010 - 138
 STACK: 40f328 40f8fb 40fb0b 40ff62 401577 4039d0 400312
EPT_VLT_RD expected
FAIL: x86/vmx_tests.c:2380: Expectation failed: (expected_qual) == (qual)
 LHS: 0x000000000000008b - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1011 - 139
 RHS: 0x000000000000008a - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1010 - 138
 STACK: 40f328 40f8fb 40fb0b 40ff7b 401577 4039d0 400312
EPT_VLT_RD expected
FAIL: x86/vmx_tests.c:2380: Expectation failed: (expected_qual) == (qual)
 LHS: 0x000000000000008b - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1011 - 139
 RHS: 0x000000000000008a - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1010 - 138
 STACK: 40f328 40f8fb 40fb0b 40ffa8 401577 4039d0 400312

Test suite: ept_access_test_paddr_read_only_ad_enabled
Host skipping test: EPT AD bits not supported.

Test suite: ept_access_test_paddr_read_write

Test suite: ept_access_test_paddr_read_write_execute

Test suite: ept_access_test_paddr_read_execute_ad_disabled
EPT_VLT_RD expected
FAIL: x86/vmx_tests.c:2380: Expectation failed: (expected_qual) == (qual)
 LHS: 0x00000000000000ab - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1010'1011 - 171
 RHS: 0x00000000000000aa - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1010'1010 - 170
 STACK: 40f328 40f8fb 40fb0b 40fde3 401577 4039d0 400312
EPT_VLT_RD expected
FAIL: x86/vmx_tests.c:2380: Expectation failed: (expected_qual) == (qual)
 LHS: 0x00000000000000ab - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1010'1011 - 171
 RHS: 0x00000000000000aa - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1010'1010 - 170
 STACK: 40f328 40f8fb 40fb0b 40fdfc 401577 4039d0 400312
EPT_VLT_RD expected
FAIL: x86/vmx_tests.c:2380: Expectation failed: (expected_qual) == (qual)
 LHS: 0x00000000000000ab - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1010'1011 - 171
 RHS: 0x00000000000000aa - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1010'1010 - 170
 STACK: 40f328 40f8fb 40fb0b 40fe15 401577 4039d0 400312
EPT_VLT_RD expected
FAIL: x86/vmx_tests.c:2380: Expectation failed: (expected_qual) == (qual)
 LHS: 0x00000000000000ab - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1010'1011 - 171
 RHS: 0x00000000000000aa - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1010'1010 - 170
 STACK: 40f328 40f8fb 40fb0b 40fe42 401577 4039d0 400312

Test suite: ept_access_test_paddr_read_execute_ad_enabled
Host skipping test: EPT AD bits not supported.

Test suite: ept_access_test_paddr_not_present_page_fault

Test suite: ept_access_test_force_2m_page
SUMMARY: 7822 tests, 8 unexpected failures

Revision history for this message
Sean Feole (sfeole) wrote :

Affected instances:
Standard_D2s_v3
Standard_D2_v3
Standard_DC2s
Standard_E2s_v3
Standard_F2s_v2

Revision history for this message
Sean Feole (sfeole) wrote :

also affects bionic, linux-azure 4.18.0-1015.15~18.04.1

tags: added: bionic
Revision history for this message
Sean Feole (sfeole) wrote :

also affects disco, linux-azure 5.0.0-1005.5

  04/26 18:31:44 DEBUG| utils:0153| [stdout] FAIL ept (7822 tests, 8 unexpected failures)
90. 04/26 18:31:44 DEBUG| utils:0153| [stdout] TESTNAME=vmx_eoi_bitmap_ioapic_scan TIMEOUT=90s ACCEL= ./x86/run x86/vmx.flat -smp 2 -cpu host,+vmx -m 2048 -append vmx_eoi_bitmap_ioapic_scan_test

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Found on B-4.15 Oracle, instance VM.DenseIO2.16
TESTNAME=ept TIMEOUT=90s ACCEL= ./x86/run x86/vmx.flat -smp 1 -cpu host,host-phys-bits,+vmx -m 2560 -append "ept_access*"
FAIL ept (8489 tests, 5 unexpected failures)

Po-Hsu Lin (cypressyew)
no longer affects: ubuntu-kernel-tests
tags: added: 5.0 disco sru-20190701 ubuntu-kvm-unit-tests
Sean Feole (sfeole)
tags: added: sru-20190722
Sean Feole (sfeole)
tags: added: 5.3
tags: added: eoan
tags: added: sru-20191021
Revision history for this message
Sean Feole (sfeole) wrote :
Download full text (6.6 KiB)

Also failing in the Eoan/5.3 kernel.

0/25 13:47:47 DEBUG| utils:0153| [stdout]
10/25 13:47:47 DEBUG| utils:0153| [stdout] Test suite: ept_access_test_paddr_not_present_ad_enabled
10/25 13:47:47 DEBUG| utils:0153| [stdout] Host skipping test: EPT AD bits not supported.
10/25 13:47:47 DEBUG| utils:0153| [stdout]
10/25 13:47:47 DEBUG| utils:0153| [stdout] Test suite: ept_access_test_paddr_read_only_ad_disabled
10/25 13:47:47 DEBUG| utils:0153| [stdout] EPT_VLT_RD expected
10/25 13:47:47 DEBUG| utils:0153| [stdout] FAIL: x86/vmx_tests.c:2380: Expectation failed: (expected_qual) == (qual)
10/25 13:47:47 DEBUG| utils:0153| [stdout] LHS: 0x000000000000008b - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1011 - 139
10/25 13:47:47 DEBUG| utils:0153| [stdout] RHS: 0x000000000000008a - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1010 - 138
10/25 13:47:47 DEBUG| utils:0153| [stdout] STACK: 40f541 40fb19 40fd29 410187 4015e9 403a95 400312
10/25 13:47:47 DEBUG| utils:0153| [stdout] EPT_VLT_RD expected
10/25 13:47:47 DEBUG| utils:0153| [stdout] FAIL: x86/vmx_tests.c:2380: Expectation failed: (expected_qual) == (qual)
10/25 13:47:47 DEBUG| utils:0153| [stdout] LHS: 0x000000000000008b - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1011 - 139
10/25 13:47:47 DEBUG| utils:0153| [stdout] RHS: 0x000000000000008a - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1010 - 138
10/25 13:47:47 DEBUG| utils:0153| [stdout] STACK: 40f541 40fb19 40fd29 4101a0 4015e9 403a95 400312
10/25 13:47:47 DEBUG| utils:0153| [stdout] EPT_VLT_RD expected
10/25 13:47:47 DEBUG| utils:0153| [stdout] FAIL: x86/vmx_tests.c:2380: Expectation failed: (expected_qual) == (qual)
10/25 13:47:47 DEBUG| utils:0153| [stdout] LHS: 0x000000000000008b - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1011 - 139
10/25 13:47:47 DEBUG| utils:0153| [stdout] RHS: 0x000000000000008a - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1010 - 138
10/25 13:47:47 DEBUG| utils:0153| [stdout] STACK: 40f541 40fb19 40fd29 4101b9 4015e9 403a95 400312
10/25 13:47:47 DEBUG| utils:0153| [stdout] EPT_VLT_RD expected
10/25 13:47:47 DEBUG| utils:0153| [stdout] FAIL: x86/vmx_tests.c:2380: Expectation failed: (expected_qual) == (qual)
10/25 13:47:47 DEBUG| utils:0153| [stdout] LHS: 0x000000000000008b - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1011 - 139
10/25 13:47:47 DEBUG| utils:0153| [stdout] RHS: 0x000000000000008a - 0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'0000'1000'1010 - 138
10/25 13:47:47 DEBUG| utils:0153| [stdout] STACK: 40f541 40fb19 40fd29 4101e6 4015e9 403a95 400312
10/25 13:47:47 DEBUG| utils:0153| [stdout]
10/25 13:47:47 DEBUG| utils:0153| [stdout] Test suite: ept_access_test_paddr_read_only_ad_enabled
10/25 13:47:47 DEBUG| utils:0153| [stdout] Host skipping test: EPT AD bits not supported.
10/25 13:47:47 DEBUG| utils:0153| [stdout]
10/25 13:47:47 DEBUG| ...

Read more...

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Passed with Oracle B-4.15 (node VM.DenseIO1.8 / VM.Standard1.4)

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Failed on Oracle B-5.0 (node VM.DenseIO1.8 / VM.Standard1.4)

tags: added: sru-20191202
Po-Hsu Lin (cypressyew)
tags: added: sru-20200127
tags: added: oracle
Po-Hsu Lin (cypressyew)
tags: added: sru-20200316
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Found on Oracle Bionic 5.3
5.3.0-1015.16~18.04.1

tags: added: sru-20200406
Steve Langasek (vorlon)
Changed in linux-azure (Ubuntu Disco):
status: New → Won't Fix
Changed in linux-kvm (Ubuntu Disco):
status: New → Won't Fix
Changed in linux-oracle (Ubuntu Disco):
status: New → Won't Fix
Revision history for this message
Kelsey Steele (kelsey-steele) wrote :

Spotted on Focal azure : 5.4.0-1029.29 : amd64

tags: added: 5.4 focal sr
Revision history for this message
Kelsey Steele (kelsey-steele) wrote :

Apologies, the above was on Bionic, not Focal. Spotted on Bionic azure : 5.4.0-1029.29~18.04.1 : amd64

Removing the Focal tag

tags: removed: 5.4 focal
tags: added: 4.15 sru-20200921
Revision history for this message
Kelsey Steele (kelsey-steele) wrote :

Failed on Bionic/oracle : 5.4.0-1026.26~18.04.1 : amd64

tags: added: 5.4
tags: added: sru-20210104
Revision history for this message
Krzysztof Kozlowski (krzk) wrote :

Very similar failures found on bionic/azure-5.4 5.4.0-1056.58~18.04.1 (and previous cycle 5.4.0-1054.56~18.04.1)

tags: added: sru-20210719
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Spotted on F-azure-5.8.0-1041.44~20.04.1:
 FAIL: x86/vmx_tests.c:2509: Expectation failed: (expected_qual) == (qual)
 FAIL: x86/vmx_tests.c:2509: Expectation failed: (expected_qual) == (qual)
 FAIL: x86/vmx_tests.c:2509: Expectation failed: (expected_qual) == (qual)
 FAIL: x86/vmx_tests.c:2509: Expectation failed: (expected_qual) == (qual)
 FAIL: x86/vmx_tests.c:2509: Expectation failed: (expected_qual) == (qual)
 FAIL: x86/vmx_tests.c:2509: Expectation failed: (expected_qual) == (qual)
 FAIL: x86/vmx_tests.c:2306: Assertion failed: (expected) == (actual)
 FAIL: x86/vmx_tests.c:2509: Expectation failed: (expected_qual) == (qual)
 FAIL: x86/vmx_tests.c:2509: Expectation failed: (expected_qual) == (qual)
 FAIL: x86/vmx_tests.c:2509: Expectation failed: (expected_qual) == (qual)
 FAIL: x86/vmx_tests.c:2306: Assertion failed: (expected) == (actual)
 FAIL ept (7271 tests, 11 unexpected failures)

tags: added: sru-20210816
Po-Hsu Lin (cypressyew)
tags: removed: sr
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.