diff options
Diffstat (limited to 'arch/x86/include/asm/processor.h')
-rw-r--r-- | arch/x86/include/asm/processor.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index 25b8de0f21c0..a092a0cce0b7 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h | |||
@@ -894,7 +894,13 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk); | |||
894 | 894 | ||
895 | #else | 895 | #else |
896 | /* | 896 | /* |
897 | * User space process size. 47bits minus one guard page. | 897 | * User space process size. 47bits minus one guard page. The guard |
898 | * page is necessary on Intel CPUs: if a SYSCALL instruction is at | ||
899 | * the highest possible canonical userspace address, then that | ||
900 | * syscall will enter the kernel with a non-canonical return | ||
901 | * address, and SYSRET will explode dangerously. We avoid this | ||
902 | * particular problem by preventing anything from being mapped | ||
903 | * at the maximum canonical address. | ||
898 | */ | 904 | */ |
899 | #define TASK_SIZE_MAX ((1UL << 47) - PAGE_SIZE) | 905 | #define TASK_SIZE_MAX ((1UL << 47) - PAGE_SIZE) |
900 | 906 | ||