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

[Xen-devel] [PATCH] Fix issue with user-mode writes to ro memory

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Fix issue with user-mode writes to ro memory
From: "Trolle Selander" <trolle.selander@xxxxxxxxx>
Date: Tue, 29 Jul 2008 12:04:01 +0100
Cc: Tim Deegan <Tim.Deegan@xxxxxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Tue, 29 Jul 2008 04:05:34 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:mime-version:content-type; bh=soz/CGcf9vi3Me+RBDz86VMdejmnKEm4oDjiKJQhQYQ=; b=Lhf/wKau9gdzYvqFQS+DLZOyW4ekfXhiwzsltEUHf5m4eh+cLeJdzUEIWf2wSIwkW/ xw3ecCJZIj3hIDw2/kd3pa5w9nMeAOk04KHfCyJI961JUfXpzPMjPa5l+5l6qfvO+7bV rDI8edgIbLVSy6hTwFDpVCFOW3cJAqRJ2xQ/0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type; b=Wh2QHXJuEZVwioEgAZHGo+vs0eylmeTb8/YBITWyHRFZ4LdsgZQBW+Ksa3pos5czqd J0tjgvKXVlwP91ZJhDCC9icBhtiLpPx3OuP0fc0rg0FI59ddpdUH/4tXu2w4JuRucvyW VL5U0LYp7ETu149+AA8MrVO2XNuJhdRnW0D94=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
This patch fixes an issue where a guest could get stuck if a write to memory marked p2m_ram_ro happened from user mode. It would get misinterpreted as a user-mode page-table write, and the "dummy write" emulation necessary to skip over the instruction never got done.
In looking into this, I also discovered that the user-mode page-table check is done in two places, the second (in emulate_map_dest) of which can never be reached and is just a waste of cycles. Tim Deegan requested that rather than completely removing that code, I'd leave it in for debug-builds with an added warning-print.

Signed-off-by: Trolle Selander <trolle.selander@xxxxxxxxxxxxx <mailto:trolle.selander@xxxxxxxxxxxxx>

Attachment: shadow_user_write_to_ro.patch
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix issue with user-mode writes to ro memory, Trolle Selander <=