[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-4.0-testing] x86/hvm: don't let domains call HVMOP_set_mem_type on themselves.



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.