Thread (3 messages) 3 messages, 3 authors, 2003-06-15

Re: [PATCH] network hotplug via class_device/kobject

flat view

From: Krzysztof Halasa <khc@pm.waw.pl>
Date: 2003-06-15 19:41:10
Also in: lkml

"David S. Miller" [off-list ref] writes:
   Paranoid about some driver doing something like:
   	rtnl_lock(); register_netdevice(); unregister_netdevice();
rtnl_unlock() BOOM

These sorts of turds exist at least in two places:

1) drivers/net/wan/comx.c
2) drivers/net/wan/hdlc_fr.c

But it is pretty clear that these two drivers have been
tried by nobody in recent years.  They both call into
{un,}register_netdevice without the RTNL semaphore held.
Not sure about 1), but 2) calls (un)register_netdevice() with rtnl_lock,
from ioctl.
-- 
Krzysztof Halasa
Network Administrator
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help