Revert "parisc: Fix stack start for ADDR_NO_RANDOMIZE personality"

This reverts commit 603d38c5da.
This commit is contained in:
Ksawlii 2024-11-24 00:23:03 +01:00
parent 1c9106694e
commit 7229d80fef

View file

@ -767,8 +767,7 @@ int setup_arg_pages(struct linux_binprm *bprm,
stack_base = STACK_SIZE_MAX;
/* Add space for stack randomization. */
if (current->flags & PF_RANDOMIZE)
stack_base += (STACK_RND_MASK << PAGE_SHIFT);
stack_base += (STACK_RND_MASK << PAGE_SHIFT);
/* Make sure we didn't let the argument array grow too large. */
if (vma->vm_end - vma->vm_start > stack_base)