From: Andi Kleen Date: Tue, 17 May 2005 04:53:20 +0000 (-0700) Subject: [PATCH] x86_64: Add a guard page at the end of the 47bit address space X-Git-Tag: v2.6.12-rc5~153 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=637716a3825e186555361574aa1fa3c0ebf8018b;p=~emulex%2Finfiniband.git [PATCH] x86_64: Add a guard page at the end of the 47bit address space This works around a bug in the AMD K8 CPUs. Signed-off-by: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/asm-x86_64/processor.h b/include/asm-x86_64/processor.h index f0581c35628..9f74a286ef1 100644 --- a/include/asm-x86_64/processor.h +++ b/include/asm-x86_64/processor.h @@ -159,9 +159,9 @@ static inline void clear_in_cr4 (unsigned long mask) /* - * User space process size. 47bits. + * User space process size. 47bits minus one guard page. */ -#define TASK_SIZE (0x800000000000UL) +#define TASK_SIZE (0x800000000000UL - 4096) /* This decides where the kernel will search for a free chunk of vm * space during mmap's.