WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] fxrstor recovery code

To: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Subject: Re: [Xen-devel] fxrstor recovery code
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Mon, 24 Apr 2006 15:58:51 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 24 Apr 2006 07:59:12 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <444CF4C8.76E4.0078.0@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <444CF4C8.76E4.0078.0@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

On 24 Apr 2006, at 14:54, Jan Beulich wrote:

Since native Linux isn't considering the possibility of fxrstor faulting because of bad data I'm wondering why Xen is, and what kind of fault it is being thought of here; after all, the documentation also doesn't say anything like that.

Linux only FXRSTORs state that was previously saved by the kernel using FXSAVE. Hence Linux knows that the data is valid and reloading it will not fault.

This is not the case in Xen, where the FPU info may come from a saved image file (if someone executes 'xm restore' on an image file). The FPU data block may contain bogus or malicious data and Xen must protect itself from that.

Concretely, if the info has a corrupted MXCSR with 1s in reserved bit positions then FXRSTOR will cause a general-protection fault. This isn't listed in the Protected Mode Exceptions section of the Intel reference manual, but see the last sentence in the main description for the instruction.

 -- Keir


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>