From 7229d80fef70358830a5082cdab233339b58165c Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:23:03 +0100 Subject: [PATCH] Revert "parisc: Fix stack start for ADDR_NO_RANDOMIZE personality" This reverts commit 603d38c5da19ffa3439207968aaf9f45a0059a25. --- fs/exec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/exec.c b/fs/exec.c index e4566fb2c..31c1827de 100755 --- a/fs/exec.c +++ b/fs/exec.c @@ -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)