Thread (6 messages) flat view 6 messages, 5 authors, 2012-08-23

Re: [PATCH net-next v3] net: remove delay at device dismantle

From: Eric Dumazet <hidden>
Date: 2012-08-23 07:00:31

On Wed, 2012-08-22 at 23:34 -0700, Eric W. Biederman wrote:
raw_notifier_call_chain isn't safe without holding some sort of lock.
So removing the ASSERT_RTNL assert here is papering over a bug elsewhere
in this patch.

Without holding a lock for traversing the notifier chain there will
be races with network module load and unload that could corrupt
this list while we are traversing it.
load/unlod.

You already have one of your NETDEV_UNREGISTER_FINAL calls under the
rtnl_lock so it doesn't look like a burden to put the other call under
the rtnl_lock as well.
Hmm right, I have been fooled by the rcu_dereference_raw() calls in
notifier_call_chain()

I'll send an update, thanks !
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help