[Devel] Re: [PATCH net-2.6.25][NETNS]: Fix race between put_net() and netlink_kernel_create().

David Miller davem at davemloft.net
Wed Jan 30 19:31:28 PST 2008


From: Pavel Emelyanov <xemul at openvz.org>
Date: Thu, 24 Jan 2008 16:15:13 +0300

> The comment about "race free view of the set of network 
> namespaces" was a bit hasty. Look (there even can be only 
> one CPU, as discovered by Alexey Dobriyan and Denis Lunev):
 ...
> Instead, I propose to crate the socket inside an init_net
> namespace and then re-attach it to the desired one right
> after the socket is created.
> 
> After doing this, we also have to be careful on error paths
> not to drop the reference on the namespace, we didn't get
> the one on.
> 
> Signed-off-by: Pavel Emelyanov <xemul at openvz.org>
> Acked-by: Denis Lunev <den at openvz.org>

Applied, thanks.




More information about the Devel mailing list