New: Segmentation: incorrect base calculation in VMX
https://bugzilla.kernel.org/show_bug.cgi?id=204175
Bug ID: 204175
Summary: Segmentation: incorrect base calculation in VMX
Product: Virtualization
Version: unspecified
Kernel Version: 5.*
Hardware: Intel
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: kvm
Assignee: [email protected]
Reporter: [email protected]
Regression: No
In vmx/nested.c::get_vmx_mem_address(), when the guest runs in long mode, the base address of the memory operand is computed with a simple:
*ret = s.base + off;
This is incorrect, the base applies only to FS and GS, not to the others.
Because of that, if the guest uses a VMX instruction based on DS and has a DS.base that is non-zero, KVM wrongfully adds the base to the resulting address.
Signature · 2 lines
You are receiving this mail because: You are watching the assignee of the bug.
[Bug 204175] nVMX: incorrect segment base calculation in VMX
https://bugzilla.kernel.org/show_bug.cgi?id=204175
Maxime Villard ([email protected]) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |CODE_FIX
Summary|Segmentation: incorrect |nVMX: incorrect segment
|base calculation in VMX |base calculation in VMX--- Comment #1 from Maxime Villard ([email protected]) --- This commit fixed the bug: 6694e48012826351036fd10fc506ca880023e25f.
Signature · 4 lines
You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.