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-changelog

[Xen-changelog] [xen-4.0-testing] x86/hvm: don't let domains call HVMOP_

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-4.0-testing] x86/hvm: don't let domains call HVMOP_set_mem_type on themselves.
From: "Xen patchbot-4.0-testing" <patchbot@xxxxxxx>
Date: Thu, 10 Feb 2011 03:50:12 -0800
Delivery-date: Thu, 10 Feb 2011 03:50:19 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Tim Deegan <Tim.Deegan@xxxxxxxxxx>
# Date 1297242132 0
# Node ID 90c7e62a49c90fd14865696526d7749df44fd0cb
# Parent  a8bc981ce9c7bb1c8e227439b2fbbf3573f51771
x86/hvm: don't let domains call HVMOP_set_mem_type on themselves.

Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
xen-unstable changeset:   22879:098c8a6483c9
xen-unstable date:        Mon Feb 07 09:39:59 2011 +0000
---
 xen/arch/x86/hvm/hvm.c |    4 ++++
 1 files changed, 4 insertions(+)

diff -r a8bc981ce9c7 -r 90c7e62a49c9 xen/arch/x86/hvm/hvm.c
--- a/xen/arch/x86/hvm/hvm.c    Mon Feb 07 10:01:19 2011 +0000
+++ b/xen/arch/x86/hvm/hvm.c    Wed Feb 09 09:02:12 2011 +0000
@@ -3041,6 +3041,10 @@ long do_hvm_op(unsigned long op, XEN_GUE
         if ( rc != 0 )
             return rc;
 
+        rc = -EPERM;
+        if ( d == current->domain )
+            goto param_fail4;
+
         rc = -EINVAL;
         if ( !is_hvm_domain(d) )
             goto param_fail4;

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-4.0-testing] x86/hvm: don't let domains call HVMOP_set_mem_type on themselves., Xen patchbot-4.0-testing <=