+ proc-fix-page_size-limit-of-proc-pid-cmdline-update.patch added to -mm tree

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

 



The patch titled
     Subject: proc-fix-page_size-limit-of-proc-pid-cmdline-update
has been added to the -mm tree.  Its filename is
     proc-fix-page_size-limit-of-proc-pid-cmdline-update.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/proc-fix-page_size-limit-of-proc-pid-cmdline-update.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/proc-fix-page_size-limit-of-proc-pid-cmdline-update.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Alexey Dobriyan <adobriyan@xxxxxxxxx>
Subject: proc-fix-page_size-limit-of-proc-pid-cmdline-update

Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>
Tested-by: Jarod Wilson <jarod@xxxxxxxxxx>
Acked-by: Jarod Wilson <jarod@xxxxxxxxxx>
Cc: Cyrill Gorcunov <gorcunov@xxxxxxxxxx>
Cc: Jan Stancek <jstancek@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 fs/proc/base.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -puN fs/proc/base.c~proc-fix-page_size-limit-of-proc-pid-cmdline-update fs/proc/base.c
--- a/fs/proc/base.c~proc-fix-page_size-limit-of-proc-pid-cmdline-update
+++ a/fs/proc/base.c
@@ -218,7 +218,8 @@ static ssize_t proc_pid_cmdline_read(str
 	put_task_struct(tsk);
 	if (!mm)
 		return 0;
-	if (!mm->arg_end) {
+	/* Check if process spawned far enough to have cmdline. */
+	if (!mm->env_end) {
 		rv = 0;
 		goto out_mmput;
 	}
_

Patches currently in -mm which might be from adobriyan@xxxxxxxxx are

prctl-more-prctlpr_set_mm_-checks.patch
prctl-more-prctlpr_set_mm_-checks-fix.patch
proc-fix-page_size-limit-of-proc-pid-cmdline.patch
proc-fix-page_size-limit-of-proc-pid-cmdline-fix.patch
proc-fix-page_size-limit-of-proc-pid-cmdline-update.patch
linux-next.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




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

  Powered by Linux