[folded-merged] exec-separate-mm_anonpages-and-rlimit_stack-accounting-fix.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: exec-separate-mm_anonpages-and-rlimit_stack-accounting-fix
has been removed from the -mm tree.  Its filename was
     exec-separate-mm_anonpages-and-rlimit_stack-accounting-fix.patch

This patch was dropped because it was folded into exec-separate-mm_anonpages-and-rlimit_stack-accounting.patch

------------------------------------------------------
From: Oleg Nesterov <oleg@xxxxxxxxxx>
Subject: exec-separate-mm_anonpages-and-rlimit_stack-accounting-fix

I forgot about the !CONFIG_MMU version of get_arg_page() which doesn't
check RLIMIT_STACK at all.

Link: http://lkml.kernel.org/r/20181126122307.GA1660@xxxxxxxxxx
Tested-by: Guenter Roeck <linux@xxxxxxxxxxxx>
Cc: Kees Cook <keescook@xxxxxxxxxxxx>
Cc: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx>
Cc: Michal Hocko <mhocko@xxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 fs/exec.c |    2 ++
 1 file changed, 2 insertions(+)

--- a/fs/exec.c~exec-separate-mm_anonpages-and-rlimit_stack-accounting-fix
+++ a/fs/exec.c
@@ -526,8 +526,10 @@ static int copy_strings(int argc, struct
 		pos = bprm->p;
 		str += len;
 		bprm->p -= len;
+#ifdef CONFIG_MMU
 		if (bprm->p < bprm->argmin)
 			goto out;
+#endif
 
 		while (len > 0) {
 			int offset, bytes_to_copy;
_

Patches currently in -mm which might be from oleg@xxxxxxxxxx are

exec-load_script-dont-blindly-truncate-shebang-string.patch
exec-separate-mm_anonpages-and-rlimit_stack-accounting.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux