svm from ubuntu_kvm_unit_tests fails on B/F (Unhandled exception 6) with node riccioli

Bug #1934939 reported by Kelsey Steele
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
New
Undecided
Unassigned

Bug Description

Failing with "Unhandled exception 6 #UD at ip 0000000000400fa3" on 5.4.0-79.88 host riccioli

Not a regression, also seen to fail on Focal/linux 5.4.0-75.84 host blanka. Appears to maybe be a flaky test case.

1. 07/05 07:14:07 DEBUG| utils:0116| Running 'kvm-ok'
2. 07/05 07:14:07 DEBUG| utils:0153| [stdout] INFO: /dev/kvm exists
3. 07/05 07:14:07 DEBUG| utils:0153| [stdout] KVM acceleration can be used
4. 07/05 07:14:07 DEBUG| utils:0116| Running '/home/ubuntu/autotest/client/tmp/ubuntu_kvm_unit_tests/src/kvm-unit-tests/tests/svm'
5. 07/05 07:14:07 DEBUG| utils:0153| [stdout] BUILD_HEAD=0fb180cf
6. 07/05 07:14:08 DEBUG| utils:0153| [stdout] timeout -k 1s --foreground 90s /usr/bin/qemu-system-x86_64 --no-reboot -nodefaults -device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4 -vnc none -serial stdio -device pci-testdev -machine accel=kvm -kernel /tmp/tmp.afu142LIi6 -smp 2 -cpu max,+svm -m 4g # -initrd /tmp/tmp.txbozA64Bf
7. 07/05 07:14:08 DEBUG| utils:0153| [stdout] enabling apic
8. 07/05 07:14:08 DEBUG| utils:0153| [stdout] enabling apic
9. 07/05 07:14:08 DEBUG| utils:0153| [stdout] paging enabled
10. 07/05 07:14:08 DEBUG| utils:0153| [stdout] cr0 = 80010011
11. 07/05 07:14:08 DEBUG| utils:0153| [stdout] cr3 = 10bf000
12. 07/05 07:14:08 DEBUG| utils:0153| [stdout] cr4 = 20
13. 07/05 07:14:08 DEBUG| utils:0153| [stdout] NPT detected - running all tests with NPT enabled
14. 07/05 07:14:08 DEBUG| utils:0153| [stdout] PASS: null
15. 07/05 07:14:08 DEBUG| utils:0153| [stdout] PASS: vmrun
16. 07/05 07:14:08 DEBUG| utils:0153| [stdout] PASS: ioio
17. 07/05 07:14:08 DEBUG| utils:0153| [stdout] PASS: vmrun intercept check
18. 07/05 07:14:08 DEBUG| utils:0153| [stdout] Unhandled exception 6 #UD at ip 0000000000400fa3
19. 07/05 07:14:08 DEBUG| utils:0153| [stdout] error_code=0000 rflags=00010002 cs=00000008
20. 07/05 07:14:08 DEBUG| utils:0153| [stdout] rax=0000000000000000 rcx=0000000000000000 rdx=00000000ffffffff rbx=0000000000000000
21. 07/05 07:14:08 DEBUG| utils:0153| [stdout] rbp=00000000004347f8 rsi=0000000000000000 rdi=000000000041a9a0
22. 07/05 07:14:08 DEBUG| utils:0153| [stdout] r8=0000000000000000 r9=0000000000000000 r10=0000000000000000 r11=0000000000000000
23. 07/05 07:14:08 DEBUG| utils:0153| [stdout] r12=0000000000000000 r13=0000000000000000 r14=0000000000000000 r15=0000000000000000
24. 07/05 07:14:08 DEBUG| utils:0153| [stdout] cr0=0000000080010011 cr2=0000000000000000 cr3=00000000010bf000 cr4=0000000000000020
25. 07/05 07:14:08 DEBUG| utils:0153| [stdout] cr8=0000000000000000
26. 07/05 07:14:08 DEBUG| utils:0153| [stdout] STACK: @400fa3
27. 07/05 07:14:08 DEBUG| utils:0153| [stdout] FAIL svm
28. 07/05 07:14:08 ERROR| test:0414| Exception escaping from test:
29. Traceback (most recent call last):
30. File "/home/ubuntu/autotest/client/shared/test.py", line 411, in _exec
31. _call_test_function(self.execute, *p_args, **p_dargs)
32. File "/home/ubuntu/autotest/client/shared/test.py", line 823, in _call_test_function
33. return func(*args, **dargs)
34. File "/home/ubuntu/autotest/client/shared/test.py", line 291, in execute
35. postprocess_profiled_run, args, dargs)
36. File "/home/ubuntu/autotest/client/shared/test.py", line 212, in _call_run_once
37. self.run_once(*args, **dargs)
38. File "/home/ubuntu/autotest/client/tests/ubuntu_kvm_unit_tests/ubuntu_kvm_unit_tests.py", line 88, in run_once
39. raise error.TestError("Test failed for {}".format(test_name))
40. TestError: Test failed for svm

summary: - svm from ubuntu_kvm_unit_tests fails on focal
+ svm from ubuntu_kvm_unit_tests fails on focal (Unhandled exception 6)
Revision history for this message
Francis Ginther (fginther) wrote : Re: svm from ubuntu_kvm_unit_tests fails on focal (Unhandled exception 6)

Also fails on bionic:linux 4.15.

tags: added: bionic
summary: - svm from ubuntu_kvm_unit_tests fails on focal (Unhandled exception 6)
+ svm from ubuntu_kvm_unit_tests fails on B/F (Unhandled exception 6)
Revision history for this message
Luke Nowakowski-Krijger (lukenow) wrote : Re: svm from ubuntu_kvm_unit_tests fails on B/F (Unhandled exception 6)

Fails on b/fips 4.15.0-1070.79

Po-Hsu Lin (cypressyew)
summary: - svm from ubuntu_kvm_unit_tests fails on B/F (Unhandled exception 6)
+ svm from ubuntu_kvm_unit_tests fails on B/F (Unhandled exception 6) with
+ node riccioli
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

With kvm-unit-test repo updated to d8a4f9e5 (ci: Update the list of tests that we run in the Fedora Cirrus-CI), this test is still failing with the same issue on node gonzo with B-4.15

tags: added: sru-20220919
tags: added: 4.15
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Download full text (12.4 KiB)

On Jammy, the error message is a bit different, test end up with:
 FAIL: MSR_IA32_LASTBRANCHFROMIP, expected=0x4021ca, actual=0x4021ca
 PASS: Test that without LBRV enabled, guest LBR state does 'leak' to the host(1)
 Unhandled exception 6 #UD at ip 000000000040174a
 error_code=0000 rflags=00010097 cs=00000008
 rax=0000000000000000 rcx=00000000000001d9 rdx=0000000000000000 rbx=0000000000414920
 rbp=000000000042fa38 rsi=0000000000000003 rdi=0000000000414d98
  r8=00000000004176f9 r9=00000000000003f8 r10=000000000000000d r11=0000000000000000
 r12=0000000000000000 r13=0000000000000000 r14=0000000000000000 r15=0000000000000000
 cr0=0000000080010011 cr2=0000000000000000 cr3=00000000010bf000 cr4=0000000000040020
 cr8=0000000000000000
  STACK: @40174a 414e48 414e48 414e48 414e48 414e48 414e48 414e48 414e48 414e48 414e48 414e48 414e48 414e48 414e48 414e48 414e48 414e48 414e48 414e48
 FAIL svm

Full test log:
Running '/home/ubuntu/autotest/client/tmp/ubuntu_kvm_unit_tests/src/kvm-unit-tests/tests/svm'
 BUILD_HEAD=5251136b
 timeout -k 1s --foreground 90s /usr/bin/qemu-system-x86_64 --no-reboot -nodefaults -device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4 -vnc none -serial stdio -device pci-testdev -machine accel=kvm -kernel /tmp/tmp.hBww2w4E5j -smp 2 -cpu max,+svm -m 4g -append -pause_filter_test # -initrd /tmp/tmp.oDwPB4oeYV
 enabling apic
 smp: waiting for 1 APs
 enabling apic
 setup: CPU 1 online
 paging enabled
 cr0 = 80010011
 cr3 = 10bf000
 cr4 = 20
 NPT detected - running all tests with NPT enabled
 PASS: null
 PASS: vmrun
 PASS: ioio
 PASS: vmrun intercept check
 PASS: rsm
 PASS: cr3 read intercept
 PASS: cr3 read nointercept
 PASS: cr3 read intercept emulate
 PASS: dr intercept check
 PASS: next_rip
 PASS: msr intercept check
 PASS: mode_switch
 PASS: asid_zero
 PASS: sel_cr0_bug
 PASS: tsc_adjust
     Latency VMRUN : max: 3002660 min: 3340 avg: 5320
     Latency VMEXIT: max: 2998700 min: 2240 avg: 2368
 PASS: latency_run_exit
     Latency VMRUN : max: 2904480 min: 5040 avg: 5306
     Latency VMEXIT: max: 2900400 min: 2240 avg: 2373
 PASS: latency_run_exit_clean
     Latency VMLOAD: max: 1813380 min: 240 avg: 267
     Latency VMSAVE: max: 1773120 min: 240 avg: 253
     Latency STGI: max: 10700 min: 40 avg: 47
     Latency CLGI: max: 1700260 min: 40 avg: 48
 PASS: latency_svm_insn
 PASS: exception with vector 2 not injected
 PASS: divide overflow exception injected
 PASS: eventinj.VALID cleared
 PASS: exc_inject
 PASS: pending_event
 PASS: pending_event_cli
 PASS: direct interrupt while running guest
 PASS: intercepted interrupt while running guest
 PASS: direct interrupt + hlt
 PASS: intercepted interrupt + hlt
 PASS: interrupt
 PASS: direct NMI while running guest
 PASS: NMI intercept while running guest
 PASS: nmi
 PASS: direct NMI + hlt
 PASS: NMI intercept while running guest
 PASS: intercepted NMI + hlt
 PASS: nmi_hlt
 PASS: virq_inject
 PASS: No RIP corruption detected after 10000 timer interrupts
 PASS: reg_corruption
 enabling apic
 setup: CPU 1 online
 PASS: svm_init_startup_test
 PASS: host_rflags
 PASS: CPUID.01H:ECX.XSAVE set before VMRUN
 PASS: svm_cr4_osxsave_test_guest finished with VMMCALL
 PASS:...

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.