lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 27 Feb 2008 15:44:54 +0000
From:	Jeba Anandhan <jeba.anandhan@...oni.com>
To:	netdev@...r.kernel.org
Cc:	matthew.hattersley@...oni.com
Subject: unregister_netdev() deadlock

Hi all,
I have doubts about unregister the netdevice.

Scenario
I have two netdevice entities. I wish to unregister one entity.

struct net_device *dev1;
struct net_device *dev2;

dev1->timer = XXX;
dev2->timer = YYY;

dev1->ioctl() {

...
case delete_other:
            unregister_netdev(dev2);
            free_netdev(dev2);
            return 0;
...
}

The dev2->refcnt is not zero in this case. unregister_netdev(dev2) cause
deadlock. Could you tell me why it happens?.


It works smoothly when we call the unregister_netdev(dev2) from
cleanup_module(). dev2->refcnt is not zero in this case.  Still it is
able to unregister.


Thanks
Jeba


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ