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

[Xen-changelog] [xen-unstable] x86: 32on64 oversight in update_va_mapping



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1173955138 0
# Node ID 8fa17d1560a9316f397e98511f1b988274173b60
# Parent  5bc5ed857cc6dd7a60442a52f10a35fa16c6fa89
x86: 32on64 oversight in update_va_mapping
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 xen/arch/x86/mm.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -r 5bc5ed857cc6 -r 8fa17d1560a9 xen/arch/x86/mm.c
--- a/xen/arch/x86/mm.c Thu Mar 15 10:38:06 2007 +0000
+++ b/xen/arch/x86/mm.c Thu Mar 15 10:38:58 2007 +0000
@@ -2768,7 +2768,9 @@ int do_update_va_mapping(unsigned long v
             flush_tlb_one_mask(d->domain_dirty_cpumask, va);
             break;
         default:
-            if ( unlikely(get_user(vmask, (unsigned long *)bmap_ptr)) )
+            if ( unlikely(!IS_COMPAT(d) ?
+                          get_user(vmask, (unsigned long *)bmap_ptr) :
+                          get_user(vmask, (unsigned int *)bmap_ptr)) )
                 rc = -EFAULT;
             pmask = vcpumask_to_pcpumask(d, vmask);
             flush_tlb_one_mask(pmask, va);

_______________________________________________
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®.