]> xenbits.xensource.com Git - xen.git/commitdiff
Revert "x86/percpu: Force INVALID_PERCPU_AREA into the non-canonical address region"
authorJan Beulich <jbeulich@suse.com>
Mon, 28 Oct 2013 10:03:54 +0000 (11:03 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 28 Oct 2013 10:03:54 +0000 (11:03 +0100)
This reverts commit 707aec94c54127ebfda7d0f8455ecbb332ee49f0.
It needs the 32-bit case to be taken into account.

xen/arch/x86/percpu.c

index 1c1dad90112abba4178c3c57b5b191852611ad2e..e5450248adaacc40978b2a45f0b39be7e6419b08 100644 (file)
@@ -6,14 +6,7 @@
 #include <xen/rcupdate.h>
 
 unsigned long __per_cpu_offset[NR_CPUS];
-
-/*
- * Force uses of per_cpu() with an invalid area to attempt to access the
- * middle of the non-canonical address space resulting in a #GP, rather than a
- * possible #PF at (NULL + a little) which has security implications in the
- * context of PV guests.
- */
-#define INVALID_PERCPU_AREA (0x8000000000000000L - (long)__per_cpu_start)
+#define INVALID_PERCPU_AREA (-(long)__per_cpu_start)
 #define PERCPU_ORDER (get_order_from_bytes(__per_cpu_data_end-__per_cpu_start))
 
 void __init percpu_init_areas(void)