Revert "mm: randomize lower bits of brk"
This reverts commit 2994f3aa26
.
This commit is contained in:
parent
db7496cd5f
commit
83ca0706a0
1 changed files with 2 additions and 2 deletions
|
@ -372,9 +372,9 @@ unsigned long arch_randomize_brk(struct mm_struct *mm)
|
|||
{
|
||||
/* Is the current task 32bit ? */
|
||||
if (!IS_ENABLED(CONFIG_64BIT) || is_compat_task())
|
||||
return mm->brk + get_random_long() % SZ_32M;
|
||||
return randomize_page(mm->brk, SZ_32M);
|
||||
|
||||
return mm->brk + get_random_long() % SZ_1G;
|
||||
return randomize_page(mm->brk, SZ_1G);
|
||||
}
|
||||
|
||||
unsigned long arch_mmap_rnd(void)
|
||||
|
|
Loading…
Reference in a new issue