mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
$NetBSD: patch-CVE-2013-1442,v 1.1 2013/10/01 14:54:44 drochner Exp $
|
|
|
|
http://lists.xenproject.org/archives/html/xen-devel/2013-09/msg02523.html
|
|
|
|
--- xen/arch/x86/i387.c.orig 2013-09-10 06:42:18.000000000 +0000
|
|
+++ xen/arch/x86/i387.c 2013-09-30 15:23:07.000000000 +0000
|
|
@@ -103,9 +103,9 @@ void setup_fpu(struct vcpu *v)
|
|
{
|
|
/*
|
|
* XCR0 normally represents what guest OS set. In case of Xen itself,
|
|
- * we set all supported feature mask before doing save/restore.
|
|
+ * we set all supported feature mask before restoring.
|
|
*/
|
|
- set_xcr0(v->arch.xcr0_accum);
|
|
+ set_xcr0(xfeature_mask);
|
|
xrstor(v);
|
|
set_xcr0(v->arch.xcr0);
|
|
}
|
|
@@ -149,7 +149,7 @@ void save_init_fpu(struct vcpu *v)
|
|
if ( xsave_enabled(v) )
|
|
{
|
|
/* XCR0 normally represents what guest OS set. In case of Xen itself,
|
|
- * we set all accumulated feature mask before doing save/restore.
|
|
+ * we set all accumulated feature mask before saving.
|
|
*/
|
|
set_xcr0(v->arch.xcr0_accum);
|
|
if ( cpu_has_xsaveopt )
|