Bug 218025 - Assertion Failure happens in kvm selftest vmx_preemption_timer_test
Summary: Assertion Failure happens in kvm selftest vmx_preemption_timer_test
Status: NEW
Alias: None
Product: Virtualization
Classification: Unclassified
Component: kvm (show other bugs)
Hardware: Intel Linux
: P3 normal
Assignee: virtualization_kvm
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-19 06:38 UTC by Ruifeng Gao
Modified: 2024-10-08 08:30 UTC (History)
1 user (show)

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments
KERNEL_CONFIG (160.35 KB, text/plain)
2023-10-19 06:38 UTC, Ruifeng Gao
Details

Description Ruifeng Gao 2023-10-19 06:38:08 UTC
Created attachment 305265 [details]
KERNEL_CONFIG

Environment:
CPU Architecture: x86_64, Sapphire Rapids, Intel(R) Xeon(R) Platinum 8487C
Host OS: CentOS Stream 9
Host kernel: Linux Kernel v6.6-rc6
Host kernel source: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Branch: master
Commit: 58720809f52779dc0f08e53e54b014209d13eebb
Tag: v6.6-rc6

Bug Detailed Description:
Assertion failure happened after executing kvm selftest vmx_preemption_timer_test.

Reproducing Steps:
git clone https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git checkout v6.6-rc6
cd linux/tools/testing/selftests/kvm && make
cd x86_64 && ./vmx_preemption_timer_test

Actual Result:
[root@spr-2s2 x86_64]# ./vmx_preemption_timer_test
Stage 2: L1 PT expiry TSC (3202723296) , L1 TSC deadline (3202657792)
Stage 2: L2 PT expiry TSC (3202694752) , L2 TSC deadline (3202678752)
==== Test Assertion Failure ====
  x86_64/vmx_preemption_timer_test.c:221: uc.args[4] < uc.args[5]
  pid=23920 tid=23920 errno=4 - Interrupted system call
     1  0x0000000000402874: main at vmx_preemption_timer_test.c:221
     2  0x00007f06c2e3feaf: ?? ??:0
     3  0x00007f06c2e3ff5f: ?? ??:0
     4  0x00000000004028e4: _start at ??:?
  Stage 2: L2 PT expiry TSC (3202694752) > L2 TSC deadline (3202678752)


Expected result:
[root@spr-2s2 x86_64]# ./vmx_preemption_timer_test
[root@spr-2s2 x86_64]#
Comment 1 Like Xu 2024-10-08 08:30:01 UTC
This issue still exists with the latest kvm-x86-next-2024.10.07 tag: 

[root@intel-spr kvm]# ./x86_64/vmx_preemption_timer_test
Random seed: 0x6b8b4567
Stage 2: L1 PT expiry TSC (3200842488) , L1 TSC deadline (3200779744)
Stage 2: L2 PT expiry TSC (3200803666) , L2 TSC deadline (3200796320)
==== Test Assertion Failure ====
  x86_64/vmx_preemption_timer_test.c:220: uc.args[4] < uc.args[5]
  pid=87853 tid=87853 errno=4 - Interrupted system call
     1	0x000000000040295c: main at vmx_preemption_timer_test.c:220
     2	0x00007efe8e755f4f: ?? ??:0
     3	0x00007efe8e756008: ?? ??:0
     4	0x0000000000402b24: _start at ??:?
  Stage 2: L2 PT expiry TSC (3200803666) > L2 TSC deadline (3200796320)

Note You need to log in before you can comment on or make changes to this bug.