[haiku-bugs] Re: [Haiku] #7252: KDL when removing an active USB network interface

  • From: "diver" <trac@xxxxxxxxxxxx>
  • Date: Fri, 08 Feb 2013 11:29:36 -0000

#7252: KDL when removing an active USB network interface
----------------------------------------+----------------------------
   Reporter:  phoudoin                  |      Owner:  axeld
       Type:  bug                       |     Status:  new
   Priority:  critical                  |  Milestone:  R1
  Component:  Network & Internet/Stack  |    Version:  R1/Development
 Resolution:                            |   Keywords:
 Blocked By:                            |   Blocking:  9447
Has a Patch:  0                         |   Platform:  All
----------------------------------------+----------------------------

Comment (by diver):

 Removing this mutex seems to fix the KDL.

 {{{
 index a3030f0..3597fa7 100644
 --- a/src/add-ons/kernel/network/stack/device_interfaces.cpp
 +++ b/src/add-ons/kernel/network/stack/device_interfaces.cpp
 @@ -761,7 +761,7 @@ device_link_changed(net_device* device)
  status_t
  device_removed(net_device* device)
  {
 -       MutexLocker locker(sLock);

         // hold a reference to the device interface being removed
         // so our put_() will (eventually) do the final cleanup

 }}}

 Found by Evgeny Abdraimov aka Shade.

 Unfortunately even with this patch applied network stack deadlocks and
 net_server/ifconfig/Network/NetworkStatus hangs as well.

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/7252#comment:8>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: