]> nv-tegra.nvidia Code Review - linux-2.6.git/commit
[NETNS]: Double free in netlink_release.
authorDenis V. Lunev <den@openvz.org>
Sat, 19 Jan 2008 07:53:31 +0000 (23:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:08:05 +0000 (15:08 -0800)
commit869e58f87094b1e8a0df49232e4a5172678d46c9
tree9ac2dc45be284ac66099e3e71b16a03fb5c21b8d
parent7d460db953d6d205e4c8ecc2017aea1ec22b6c9a
[NETNS]: Double free in netlink_release.

Netlink protocol table is global for all namespaces. Some netlink
protocols have been virtualized, i.e. they have per/namespace netlink
socket. This difference can easily lead to double free if more than 1
namespace is started. Count the number of kernel netlink sockets to
track that this table is not used any more.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Tested-by: Alexey Dobriyan <adobriyan@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c