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-unstable] [IA64] Fix XEN_DOMCTL_shadow_op. it shoul

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] Fix XEN_DOMCTL_shadow_op. it should check copy_to_guest() return value.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 08 Jan 2008 15:10:12 -0800
Delivery-date: Tue, 08 Jan 2008 15:10:31 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 Alex Williamson <alex.williamson@xxxxxx>
# Date 1199044434 25200
# Node ID 6c0aec4604f7d1e7c2223bdaa365fb5f54fe4fc2
# Parent  3d7213deb33e863a32d10f44d1c3800a1235309b
[IA64] Fix XEN_DOMCTL_shadow_op. it should check copy_to_guest() return value.

Pointed out by Samuel Thibault.

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
 xen/arch/ia64/xen/dom0_ops.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 3d7213deb33e -r 6c0aec4604f7 xen/arch/ia64/xen/dom0_ops.c
--- a/xen/arch/ia64/xen/dom0_ops.c      Sun Dec 30 12:50:09 2007 -0700
+++ b/xen/arch/ia64/xen/dom0_ops.c      Sun Dec 30 12:53:54 2007 -0700
@@ -168,7 +168,8 @@ long arch_do_domctl(xen_domctl_t *op, XE
         {
             ret = shadow_mode_control(d, &op->u.shadow_op);
             put_domain(d);
-            copy_to_guest(u_domctl, op, 1);
+            if (copy_to_guest(u_domctl, op, 1))
+                ret = -EFAULT;
         } 
     }
     break;

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] Fix XEN_DOMCTL_shadow_op. it should check copy_to_guest() return value., Xen patchbot-unstable <=