Revert "support randomizing the lower bits of brk"
This reverts commit e3839126e6
.
This commit is contained in:
parent
ece840ae37
commit
db7496cd5f
1 changed files with 0 additions and 7 deletions
|
@ -250,13 +250,6 @@ SYSCALL_DEFINE1(brk, unsigned long, brk)
|
|||
|
||||
newbrk = PAGE_ALIGN(brk);
|
||||
oldbrk = PAGE_ALIGN(mm->brk);
|
||||
/* properly handle unaligned min_brk as an empty heap */
|
||||
if (min_brk & ~PAGE_MASK) {
|
||||
if (brk == min_brk)
|
||||
newbrk -= PAGE_SIZE;
|
||||
if (mm->brk == min_brk)
|
||||
oldbrk -= PAGE_SIZE;
|
||||
}
|
||||
if (oldbrk == newbrk) {
|
||||
mm->brk = brk;
|
||||
goto success;
|
||||
|
|
Loading…
Reference in a new issue