xen: update to 4.7.2.
This commit is contained in:
parent
565103d569
commit
e30a95136a
2 changed files with 3 additions and 58 deletions
|
@ -1,55 +0,0 @@
|
||||||
From: Jan Beulich <jbeulich@suse.com>
|
|
||||||
Subject: x86emul: CMPXCHG8B ignores operand size prefix
|
|
||||||
|
|
||||||
Otherwise besides mis-handling the instruction, the comparison failure
|
|
||||||
case would result in uninitialized stack data being handed back to the
|
|
||||||
guest in rDX:rAX (32 bits leaked for 32-bit guests, 96 bits for 64-bit
|
|
||||||
ones).
|
|
||||||
|
|
||||||
This is XSA-200.
|
|
||||||
|
|
||||||
Signed-off-by: Jan Beulich <jbeulich@suse.com>
|
|
||||||
|
|
||||||
--- a/tools/tests/x86_emulator/test_x86_emulator.c
|
|
||||||
+++ b/tools/tests/x86_emulator/test_x86_emulator.c
|
|
||||||
@@ -435,6 +435,24 @@ int main(int argc, char **argv)
|
|
||||||
goto fail;
|
|
||||||
printf("okay\n");
|
|
||||||
|
|
||||||
+ printf("%-40s", "Testing cmpxchg8b (%edi) [opsize]...");
|
|
||||||
+ instr[0] = 0x66; instr[1] = 0x0f; instr[2] = 0xc7; instr[3] = 0x0f;
|
|
||||||
+ res[0] = 0x12345678;
|
|
||||||
+ res[1] = 0x87654321;
|
|
||||||
+ regs.eflags = 0x200;
|
|
||||||
+ regs.eip = (unsigned long)&instr[0];
|
|
||||||
+ regs.edi = (unsigned long)res;
|
|
||||||
+ rc = x86_emulate(&ctxt, &emulops);
|
|
||||||
+ if ( (rc != X86EMUL_OKAY) ||
|
|
||||||
+ (res[0] != 0x12345678) ||
|
|
||||||
+ (res[1] != 0x87654321) ||
|
|
||||||
+ (regs.eax != 0x12345678) ||
|
|
||||||
+ (regs.edx != 0x87654321) ||
|
|
||||||
+ ((regs.eflags&0x240) != 0x200) ||
|
|
||||||
+ (regs.eip != (unsigned long)&instr[4]) )
|
|
||||||
+ goto fail;
|
|
||||||
+ printf("okay\n");
|
|
||||||
+
|
|
||||||
printf("%-40s", "Testing movsxbd (%%eax),%%ecx...");
|
|
||||||
instr[0] = 0x0f; instr[1] = 0xbe; instr[2] = 0x08;
|
|
||||||
regs.eflags = 0x200;
|
|
||||||
--- a/xen/arch/x86/x86_emulate/x86_emulate.c
|
|
||||||
+++ b/xen/arch/x86/x86_emulate/x86_emulate.c
|
|
||||||
@@ -4775,8 +4775,12 @@ x86_emulate(
|
|
||||||
generate_exception_if((modrm_reg & 7) != 1, EXC_UD, -1);
|
|
||||||
generate_exception_if(ea.type != OP_MEM, EXC_UD, -1);
|
|
||||||
if ( op_bytes == 8 )
|
|
||||||
+ {
|
|
||||||
host_and_vcpu_must_have(cx16);
|
|
||||||
- op_bytes *= 2;
|
|
||||||
+ op_bytes = 16;
|
|
||||||
+ }
|
|
||||||
+ else
|
|
||||||
+ op_bytes = 8;
|
|
||||||
|
|
||||||
/* Get actual old value. */
|
|
||||||
if ( (rc = ops->read(ea.mem.seg, ea.mem.off, old, op_bytes,
|
|
|
@ -1,13 +1,13 @@
|
||||||
# Template file for 'xen'
|
# Template file for 'xen'
|
||||||
pkgname=xen
|
pkgname=xen
|
||||||
version=4.7.1
|
version=4.7.2
|
||||||
revision=2
|
revision=1
|
||||||
short_desc="The Xen hypervisor utilities"
|
short_desc="The Xen hypervisor utilities"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
homepage="http://xen.org"
|
homepage="http://xen.org"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
distfiles="http://bits.xensource.com/oss-xen/release/$version/xen-$version.tar.gz"
|
distfiles="http://bits.xensource.com/oss-xen/release/$version/xen-$version.tar.gz"
|
||||||
checksum=e87f4b0575e78657ee23d31470a15ecf1ce8c3a92a771cda46bbcd4d0d671ffe
|
checksum=61494a56d9251e2108080f95b0dc8e3d175f1ba4da34603fc07b91cfebf358d5
|
||||||
|
|
||||||
patch_args="-Np1"
|
patch_args="-Np1"
|
||||||
only_for_archs="x86_64 x86_64-musl"
|
only_for_archs="x86_64 x86_64-musl"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue