aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/include/asm/elf.h4
-rw-r--r--arch/x86/kernel/sys_x86_64.c2
-rw-r--r--arch/x86/mm/hugetlbpage.c2
-rw-r--r--arch/x86/mm/mmap.c10
4 files changed, 9 insertions, 9 deletions
diff --git a/arch/x86/include/asm/elf.h b/arch/x86/include/asm/elf.h
index 1c18d83d3f09..c7090ef1388e 100644
--- a/arch/x86/include/asm/elf.h
+++ b/arch/x86/include/asm/elf.h
@@ -304,8 +304,8 @@ static inline int mmap_is_ia32(void)
304 test_thread_flag(TIF_ADDR32)); 304 test_thread_flag(TIF_ADDR32));
305} 305}
306 306
307extern unsigned long tasksize_32bit(void); 307extern unsigned long task_size_32bit(void);
308extern unsigned long tasksize_64bit(void); 308extern unsigned long task_size_64bit(void);
309extern unsigned long get_mmap_base(int is_legacy); 309extern unsigned long get_mmap_base(int is_legacy);
310 310
311#ifdef CONFIG_X86_32 311#ifdef CONFIG_X86_32
diff --git a/arch/x86/kernel/sys_x86_64.c b/arch/x86/kernel/sys_x86_64.c
index 213ddf3e937d..89bd0d6460e1 100644
--- a/arch/x86/kernel/sys_x86_64.c
+++ b/arch/x86/kernel/sys_x86_64.c
@@ -120,7 +120,7 @@ static void find_start_end(unsigned long flags, unsigned long *begin,
120 } 120 }
121 121
122 *begin = get_mmap_base(1); 122 *begin = get_mmap_base(1);
123 *end = in_compat_syscall() ? tasksize_32bit() : tasksize_64bit(); 123 *end = in_compat_syscall() ? task_size_32bit() : task_size_64bit();
124} 124}
125 125
126unsigned long 126unsigned long
diff --git a/arch/x86/mm/hugetlbpage.c b/arch/x86/mm/hugetlbpage.c
index 2824607df108..868f02cf58ce 100644
--- a/arch/x86/mm/hugetlbpage.c
+++ b/arch/x86/mm/hugetlbpage.c
@@ -86,7 +86,7 @@ static unsigned long hugetlb_get_unmapped_area_bottomup(struct file *file,
86 info.length = len; 86 info.length = len;
87 info.low_limit = get_mmap_base(1); 87 info.low_limit = get_mmap_base(1);
88 info.high_limit = in_compat_syscall() ? 88 info.high_limit = in_compat_syscall() ?
89 tasksize_32bit() : tasksize_64bit(); 89 task_size_32bit() : task_size_64bit();
90 info.align_mask = PAGE_MASK & ~huge_page_mask(h); 90 info.align_mask = PAGE_MASK & ~huge_page_mask(h);
91 info.align_offset = 0; 91 info.align_offset = 0;
92 return vm_unmapped_area(&info); 92 return vm_unmapped_area(&info);
diff --git a/arch/x86/mm/mmap.c b/arch/x86/mm/mmap.c
index 229d04a83f85..d2586913c8d0 100644
--- a/arch/x86/mm/mmap.c
+++ b/arch/x86/mm/mmap.c
@@ -37,12 +37,12 @@ struct va_alignment __read_mostly va_align = {
37 .flags = -1, 37 .flags = -1,
38}; 38};
39 39
40unsigned long tasksize_32bit(void) 40unsigned long task_size_32bit(void)
41{ 41{
42 return IA32_PAGE_OFFSET; 42 return IA32_PAGE_OFFSET;
43} 43}
44 44
45unsigned long tasksize_64bit(void) 45unsigned long task_size_64bit(void)
46{ 46{
47 return TASK_SIZE_MAX; 47 return TASK_SIZE_MAX;
48} 48}
@@ -52,7 +52,7 @@ static unsigned long stack_maxrandom_size(unsigned long task_size)
52 unsigned long max = 0; 52 unsigned long max = 0;
53 if ((current->flags & PF_RANDOMIZE) && 53 if ((current->flags & PF_RANDOMIZE) &&
54 !(current->personality & ADDR_NO_RANDOMIZE)) { 54 !(current->personality & ADDR_NO_RANDOMIZE)) {
55 max = (-1UL) & __STACK_RND_MASK(task_size == tasksize_32bit()); 55 max = (-1UL) & __STACK_RND_MASK(task_size == task_size_32bit());
56 max <<= PAGE_SHIFT; 56 max <<= PAGE_SHIFT;
57 } 57 }
58 58
@@ -142,7 +142,7 @@ void arch_pick_mmap_layout(struct mm_struct *mm)
142 mm->get_unmapped_area = arch_get_unmapped_area_topdown; 142 mm->get_unmapped_area = arch_get_unmapped_area_topdown;
143 143
144 arch_pick_mmap_base(&mm->mmap_base, &mm->mmap_legacy_base, 144 arch_pick_mmap_base(&mm->mmap_base, &mm->mmap_legacy_base,
145 arch_rnd(mmap64_rnd_bits), tasksize_64bit()); 145 arch_rnd(mmap64_rnd_bits), task_size_64bit());
146 146
147#ifdef CONFIG_HAVE_ARCH_COMPAT_MMAP_BASES 147#ifdef CONFIG_HAVE_ARCH_COMPAT_MMAP_BASES
148 /* 148 /*
@@ -152,7 +152,7 @@ void arch_pick_mmap_layout(struct mm_struct *mm)
152 * mmap_base, the compat syscall uses mmap_compat_base. 152 * mmap_base, the compat syscall uses mmap_compat_base.
153 */ 153 */
154 arch_pick_mmap_base(&mm->mmap_compat_base, &mm->mmap_compat_legacy_base, 154 arch_pick_mmap_base(&mm->mmap_compat_base, &mm->mmap_compat_legacy_base,
155 arch_rnd(mmap32_rnd_bits), tasksize_32bit()); 155 arch_rnd(mmap32_rnd_bits), task_size_32bit());
156#endif 156#endif
157} 157}
158 158