]> err.no Git - linux-2.6/blobdiff - fs/binfmt_elf.c
Pull c2 into release branch
[linux-2.6] / fs / binfmt_elf.c
index 51db1182b27e4470edbc6945574aa1158a110bea..a2fceba7ef8ef7df17519c72e29124ad61ff6f6b 100644 (file)
@@ -507,7 +507,7 @@ out:
 #define INTERPRETER_ELF 2
 
 #ifndef STACK_RND_MASK
-#define STACK_RND_MASK 0x7ff           /* with 4K pages 8MB of VA */
+#define STACK_RND_MASK (0x7ff >> (PAGE_SHIFT - 12))    /* 8MB of VA */
 #endif
 
 static unsigned long randomize_stack_top(unsigned long stack_top)