|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen stable-4.22] x86/emul: Reject MOVNTI without a memory operand
commit 8611b2114ebc46b4fdf879b84aed354e6f8923a3
Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
AuthorDate: Thu Nov 26 17:45:29 2026 +0100
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Nov 26 17:45:29 2026 +0100
x86/emul: Reject MOVNTI without a memory operand
MOVNTI encoded with two registers is treated as a plain reg->reg move by the
emulator, but it's a nonsensical encoding which hardware rejects with #UD.
Fixes: 372da9b41e0f ("x86: add movnti emulation")
Reported-by: Teddy Astie <teddy.astie@xxxxxxxxxx>
Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
master commit: 24e562a98dedd75f2cf0fa90547409520bbb747f
master date: 2026-11-26 10:58:35 +0000
---
xen/arch/x86/x86_emulate/x86_emulate.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/xen/arch/x86/x86_emulate/x86_emulate.c
b/xen/arch/x86/x86_emulate/x86_emulate.c
index 8224b09a1b..9e7299a46f 100644
--- a/xen/arch/x86/x86_emulate/x86_emulate.c
+++ b/xen/arch/x86/x86_emulate/x86_emulate.c
@@ -5379,6 +5379,7 @@ x86_emulate(
case X86EMUL_OPC(0x0f, 0xc3): /* movnti */
/* Ignore the non-temporal hint for now. */
+ generate_exception_if(ea.type != OP_MEM, X86_EXC_UD);
vcpu_must_have(sse2);
dst.val = src.val;
sfence = true;
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.22
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |