From mboxrd@z Thu Jan 1 00:00:00 1970 From: Or Gerlitz Subject: Re: [PATCH net-next V3 1/2] IB/ipoib: Add rtnl_link_ops support Date: Thu, 13 Sep 2012 13:54:59 +0300 Message-ID: <5051BB83.3010103@mellanox.com> References: <1345724119-32110-1-git-send-email-ogerlitz@mellanox.com> <1345724119-32110-2-git-send-email-ogerlitz@mellanox.com> <5050668B.1010105@mellanox.com> <1347462823.13103.1085.camel@edumazet-glaptop> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit Cc: Rami Rosen , Patrick McHardy , , Shlomo Pongratz To: Eric Dumazet Return-path: Received: from eu1sys200aog103.obsmtp.com ([207.126.144.115]:58311 "HELO eu1sys200aog103.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1757551Ab2IMLD0 (ORCPT ); Thu, 13 Sep 2012 07:03:26 -0400 In-Reply-To: <1347462823.13103.1085.camel@edumazet-glaptop> Sender: netdev-owner@vger.kernel.org List-ID: On 12/09/2012 18:13, Eric Dumazet wrote: > It might be related to module load/unload udevd or some external > daemon can access sysfs files while you unload the module Hi Eric, I see, the IPoIB add/delete child sysfs handlers (ipoib_vlan_add/delete) use RTNL locking to protect against netdev changes while the handlers are in action. IPoIB uses devide_create_file to add the sysfs entries, but doesn't care to use device_remove_file as these entries sit under the netdevice /sys/class/net/DEV directory and are removed by higher layer when DEV gets unregistered/deleted, I'm not sure if/how the driver is supposed to protect against access to these entries while going down, when the module is unloaded, etc, any idea will be appreciated. Or.