| From | "Kirill A. Shutemov" <> | Subject | [RFC, PATCHv1 28/28] TESTING-ONLY: bump TASK_SIZE_MAX | Date | Thu, 8 Dec 2016 19:21:50 +0300 |
| |
This is useful for now to play with.
We would need to imlement proper opt-in with prctl()/personality()/ELF flag. --- arch/x86/include/asm/processor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h index 63def9537a2d..ab44cbe853cb 100644 --- a/arch/x86/include/asm/processor.h +++ b/arch/x86/include/asm/processor.h @@ -755,7 +755,8 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk); * particular problem by preventing anything from being mapped * at the maximum canonical address. */ -#define TASK_SIZE_MAX ((1UL << 47) - PAGE_SIZE) +/* TODO: use >47bit only if requested */ +#define TASK_SIZE_MAX ((1UL << __VIRTUAL_MASK_SHIFT) - PAGE_SIZE) /* This decides where the kernel will search for a free chunk of vm * space during mmap's. -- 2.10.2
|