lkml.org 
[lkml]   [2003]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] network hotplug via class_device/kobject
From
Date
"David S. Miller" <davem@redhat.com> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.033 / U:31.580 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site