aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/x86/nested_exceptions_test.c
diff options
context:
space:
mode:
authorAhmed S. Darwish <[email protected]>2025-03-04 08:51:13 +0000
committerIngo Molnar <[email protected]>2025-03-04 08:59:14 +0000
commit1881148215c67151b146450fb89ec22fd92337a7 (patch)
tree393dab7156c462c71907ba0c4fa363f1da674227 /tools/testing/selftests/kvm/x86/nested_exceptions_test.c
parentx86/cacheinfo: Validate CPUID leaf 0x2 EDX output (diff)
downloadkernel-1881148215c67151b146450fb89ec22fd92337a7.tar.gz
kernel-1881148215c67151b146450fb89ec22fd92337a7.zip
x86/cpu: Validate CPUID leaf 0x2 EDX output
CPUID leaf 0x2 emits one-byte descriptors in its four output registers EAX, EBX, ECX, and EDX. For these descriptors to be valid, the most significant bit (MSB) of each register must be clear. Leaf 0x2 parsing at intel.c only validated the MSBs of EAX, EBX, and ECX, but left EDX unchecked. Validate EDX's most-significant bit as well. Fixes: e0ba94f14f74 ("x86/tlb_info: get last level TLB entry number of CPU") Signed-off-by: Ahmed S. Darwish <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: [email protected] Cc: "H. Peter Anvin" <[email protected]> Cc: Linus Torvalds <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/kvm/x86/nested_exceptions_test.c')
0 files changed, 0 insertions, 0 deletions