HI Cong, Have you posted any patch for the same? I am looking for single netlink socket to handle multiple network namespace events using NETLINK_LISTEN_ALL_NSID. I don't see detection of new namespaces by this socket yet and causing updates to be missed.
Thanks Krishna Mohan. -----Original Message----- From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] On Behalf Of Cong Wang Sent: Thursday, October 20, 2016 1:37 AM To: Elad Raz <e...@eladraz.com> Cc: Nicolas Dichtel <nicolas.dich...@6wind.com>; David Miller <da...@davemloft.net>; Linux Netdev List <netdev@vger.kernel.org>; Jiri Pirko <j...@resnulli.us>; Ido Schimmel <ido...@mellanox.com>; Yotam Gigi <yot...@mellanox.com> Subject: Re: [Patch net-next 2/2] netns: avoid disabling irq for netns id On Wed, Oct 19, 2016 at 8:21 AM, Elad Raz <e...@eladraz.com> wrote: > On Fri, Sep 2, 2016 at 11:12 AM, Nicolas Dichtel > <nicolas.dich...@6wind.com> wrote: >> Le 02/09/2016 à 06:53, Cong Wang a écrit : >>> We never read or change netns id in hardirq context, the only place >>> we read netns id in softirq context is in vxlan_xmit(). So, it >>> should be enough to just disable BH. >> >> Are you sure? Did you audit all part of the code? >> peernet2id() is called from netlink core system (do_one_broadcast()). >> Are you sure that no driver call this function from an hard irq context? >> >> I think that NETLINK_LISTEN_ALL_NSID is largely untested, so it will >> be hard to detect a bug introduced in this feature. > > I'm seeing strange things on our systems on boot time when trying to > mount autofs. > I bisected and got this patch as the bad one. > I can see that only when I'm using "debug" config file. Yeah, I saw the same report from SELinux developers, I am working on a fix. Thanks.