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

[Xen-changelog] [xen-4.1-testing] x86-64: Fix off-by-one error in __addr_ok() macro


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-4.1-testing <patchbot@xxxxxxx>
  • Date: Wed, 05 Sep 2012 01:01:32 +0000
  • Delivery-date: Wed, 05 Sep 2012 01:01:42 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Laszlo Ersek <lersek@xxxxxxxxxx>
# Date 1346761678 -7200
# Node ID cde6c55bbc0777205679216aafb36d3cd02008be
# Parent  fc9fe622e5e03c6ffc21bec264969f0ca79dc456
x86-64: Fix off-by-one error in __addr_ok() macro

Signed-off-by: Laszlo Ersek <lersek@xxxxxxxxxx>
Signed-off-by: Keir Fraser <keir@xxxxxxx>
xen-unstable changeset: 23800:72edc40e2942
xen-unstable date: Wed Aug 31 14:14:49 UTC 2011
---


diff -r fc9fe622e5e0 -r cde6c55bbc07 xen/include/asm-x86/x86_64/uaccess.h
--- a/xen/include/asm-x86/x86_64/uaccess.h      Tue Sep 04 14:23:18 2012 +0200
+++ b/xen/include/asm-x86/x86_64/uaccess.h      Tue Sep 04 14:27:58 2012 +0200
@@ -21,7 +21,7 @@ void free_compat_arg_xlat(struct vcpu *v
  * non-canonical address (and thus fault) before ever reaching VIRT_START.
  */
 #define __addr_ok(addr) \
-    (((unsigned long)(addr) < (1UL<<48)) || \
+    (((unsigned long)(addr) < (1UL<<47)) || \
      ((unsigned long)(addr) >= HYPERVISOR_VIRT_END))
 
 #define access_ok(addr, size) \

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
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®.