um: increase stack growth cushion in pagefault

analog of [PATCH] i386: let usermode execute the "enter" instruction from
circa 2006.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
Al Viro
2011-08-18 20:10:19 +01:00
committed by Richard Weinberger
parent 3579a38973
commit c7ea591c91
3 changed files with 3 additions and 6 deletions

View File

@@ -10,6 +10,9 @@
# include "processor_64.h"
#endif
#define ARCH_IS_STACKGROW(address) \
(address + 65536 + 32 * sizeof(unsigned long) >= UPT_SP(&current->thread.regs.regs))
#include <asm/processor-generic.h>
#endif