+ exec-fix-remove_arg_zero-add-comment.patch added to -mm tree

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

 



The patch titled
     exec-fix-remove_arg_zero-add-comment
has been added to the -mm tree.  Its filename is
     exec-fix-remove_arg_zero-add-comment.patch

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

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: exec-fix-remove_arg_zero-add-comment
From: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>

Add Peter's comment to Nick's patch.

Cc: Nick Piggin <npiggin@xxxxxxx>
Cc: Petr Tesarik <ptesarik@xxxxxxx>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 fs/exec.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff -puN fs/exec.c~exec-fix-remove_arg_zero-add-comment fs/exec.c
--- a/fs/exec.c~exec-fix-remove_arg_zero-add-comment
+++ a/fs/exec.c
@@ -982,9 +982,13 @@ void compute_creds(struct linux_binprm *
 	task_unlock(current);
 	security_bprm_post_apply_creds(bprm);
 }
-
 EXPORT_SYMBOL(compute_creds);
 
+/*
+ * Arguments are '\0' separated strings found at the location bprm->p
+ * points to; chop off the first by relocating brpm->p to right after
+ * the first '\0' encountered.
+ */
 void remove_arg_zero(struct linux_binprm *bprm)
 {
 	if (bprm->argc) {
@@ -1023,7 +1027,6 @@ void remove_arg_zero(struct linux_binprm
 		bprm->argc--;
 	}
 }
-
 EXPORT_SYMBOL(remove_arg_zero);
 
 /*
_

Patches currently in -mm which might be from a.p.zijlstra@xxxxxxxxx are

ecryptfs-nested-locking-annotation.patch
nfs-fix-congestion-control-v4.patch
lists-add-list-splice-tail.patch
nfs-fix-congestion-control-use-atomic_longs.patch
exec-fix-remove_arg_zero-add-comment.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