[obsolete] kernel-pidc-mask-the-flag-out-to-get-the-actual-value.patch removed from -mm tree

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

 



Subject: [obsolete] kernel-pidc-mask-the-flag-out-to-get-the-actual-value.patch removed from -mm tree
To: raphael.scarv@xxxxxxxxx,ebiederm@xxxxxxxxxxxx,mm-commits@xxxxxxxxxxxxxxx
From: akpm@xxxxxxxxxxxxxxxxxxxx
Date: Tue, 11 Jun 2013 18:28:16 -0700


The patch titled
     Subject: kernel/pid.c: mask the flag out to get the actual value
has been removed from the -mm tree.  Its filename was
     kernel-pidc-mask-the-flag-out-to-get-the-actual-value.patch

This patch was dropped because it is obsolete

------------------------------------------------------
From: "Raphael S. Carvalho" <raphael.scarv@xxxxxxxxx>
Subject: kernel/pid.c: mask the flag out to get the actual value

This patch shouldn't be applied if those branches must only be taken when
the pid_allocation(PIDNS_HASH_ADDING) flag was turned off.  Otherwise, we
must turn the PIDNS_HASH_ADDING flag (1U << 31) off before getting into
the switch-cases.

Signed-off-by: Raphael S. Carvalho <raphael.scarv@xxxxxxxxx>
Cc: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 kernel/pid.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff -puN kernel/pid.c~kernel-pidc-mask-the-flag-out-to-get-the-actual-value kernel/pid.c
--- a/kernel/pid.c~kernel-pidc-mask-the-flag-out-to-get-the-actual-value
+++ a/kernel/pid.c
@@ -264,7 +264,10 @@ void free_pid(struct pid *pid)
 		struct upid *upid = pid->numbers + i;
 		struct pid_namespace *ns = upid->ns;
 		hlist_del_rcu(&upid->pid_chain);
-		switch(--ns->nr_hashed) {
+
+		/* We must turn the PIDNS_HASH_ADDING flag off to
+		   get the actual value of nr_hashed */
+		switch ((--ns->nr_hashed) & ~(PIDNS_HASH_ADDING)) {
 		case 1:
 			/* When all that is left in the pid namespace
 			 * is the reaper wake up the reaper.  The reaper
_

Patches currently in -mm which might be from raphael.scarv@xxxxxxxxx are

kernel-auditfilterc-fixing-build-warning.patch
kernel-pidc-move-statement.patch
kernel-pidc-mask-the-flag-out-to-get-the-actual-value-fix.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