+ namespaces-incorporate-fs-namespace-into-nsproxy-fix.patch added to -mm tree

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

 



The patch titled

     nsproxy cloning error path fix

has been added to the -mm tree.  Its filename is

     namespaces-incorporate-fs-namespace-into-nsproxy-fix.patch

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

------------------------------------------------------
Subject: nsproxy cloning error path fix
From: Pavel <xemul@xxxxxxxxxx>

This patch fixes copy_namespaces()'s error path.

when new nsproxy (new_ns) is created pointers to namespaces (ipc, uts) are
copied from the old nsproxy.  Later in copy_utsname, copy_ipcs, etc. 
according namespaces are get-ed.  On error path needed namespaces are
put-ed, so there's no need to put new nsproxy itelf as it woud cause
putting namespaces for the second time.

Found when incorporating namespaces into OpenVZ kernel.

Signed-off-by: Pavel Emelianov <xemul@xxxxxxxxxx>
Acked-by: Serge Hallyn <serue@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 kernel/nsproxy.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN kernel/nsproxy.c~namespaces-incorporate-fs-namespace-into-nsproxy-fix kernel/nsproxy.c
--- a/kernel/nsproxy.c~namespaces-incorporate-fs-namespace-into-nsproxy-fix
+++ a/kernel/nsproxy.c
@@ -93,7 +93,7 @@ int copy_namespaces(int flags, struct ta
 	err = copy_namespace(flags, tsk);
 	if (err) {
 		tsk->nsproxy = old_ns;
-		put_nsproxy(new_ns);
+		kfree(new_ns);
 		goto out;
 	}
 
_

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

fix-unserialized-task-files-changing.patch
fix-unserialized-task-files-changing-fix.patch
namespaces-incorporate-fs-namespace-into-nsproxy-fix.patch
ipc-namespace-core.patch
ipc-namespace-utils.patch
ipc-namespace-msg.patch
ipc-namespace-sem.patch
ipc-namespace-shm.patch
ipc-namespace-sysctls.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