Revert "support randomizing the lower bits of brk"

This reverts commit e3839126e6.
This commit is contained in:
Ksawlii 2024-12-13 19:44:19 +01:00
parent ece840ae37
commit db7496cd5f

View file

@ -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;