]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "net: kernel socket should be released in init_net namespace"
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 3 May 2015 00:04:28 +0000 (08:04 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2015 04:13:16 +0000 (00:13 -0400)
commitea007f1a6e6c3ac146a1c0ea200adfbb642feffd
tree1b9d5ffb69afadab90c88ef00f50ebe949155b9d
parent05664feb3f24e25acd3c018bd75283c22042c5f6
Revert "net: kernel socket should be released in init_net namespace"

This reverts commit c35d8a99f148f5699cf7f3eb6301f1bfd0370188.

That patch is solving a non-existant problem while creating a
real problem.  Just because a socket is allocated in the init
name space doesn't mean that it gets hashed in the init name space.

When we unhash it the name space must be the same as the one
we had when we hashed it.  So this patch is completely bogus
and causes socket leaks.

Reported-by: Andrey Wagin <avagin@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c