]> git.baikalelectronics.ru Git - kernel.git/commit
fix refcounting of nsproxy object when unshared
authorCedric Le Goater <clg@fr.ibm.com>
Sun, 24 Jun 2007 00:16:25 +0000 (17:16 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 24 Jun 2007 15:59:10 +0000 (08:59 -0700)
commitd2afd9c2e5276f67be05052679ab31ffcf0891d5
tree2a14a2d1efe99fe2a8e9c01ba851d6c28ddbef23
parent700df70ae327269fd33119a82096e205ee922267
fix refcounting of nsproxy object when unshared

When a namespace is unshared, a refcount on the previous nsproxy is
abusively taken, leading to a memory leak of nsproxy objects.

Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
Cc: Badari Pulavarty <pbadari@us.ibm.com>
Cc: Herbert Poetzl <herbert@13thfloor.at>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/nsproxy.c