Jan Beulich
2007-Mar-14 16:33 UTC
[Xen-devel] [PATCH] 32on64 oversight in update_va_mapping
Signed-off-by: Jan Beulich <jbeulich@novell.com> Index: 2007-02-27/xen/arch/x86/mm.c ==================================================================--- 2007-02-27.orig/xen/arch/x86/mm.c 2007-03-13 15:20:23.000000000 +0100 +++ 2007-02-27/xen/arch/x86/mm.c 2007-03-14 17:25:38.000000000 +0100 @@ -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-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel