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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20140102.123331.611627665684699985.davem@davemloft.net>
Date:	Thu, 02 Jan 2014 12:33:31 -0500 (EST)
From:	David Miller <davem@...emloft.net>
To:	jiang.biao2@....com.cn
Cc:	li.fengmao@....com.cn, manish.chopra@...gic.com,
	netdev@...r.kernel.org, rajesh.borundia@...gic.com,
	sony.chacko@...gic.com
Subject: Re: .$BEz.$(P%;.(B: Re: [Patch]
 netxen_nic: Bugfix for wrong RUNNING status of NX3031 NICs with no link

From: jiang.biao2@....com.cn
Date: Thu, 2 Jan 2014 16:53:17 +0800

>> You cannot do this, because at the very exact moment you call
>> register_netdevice() the device can be brought up and once the
>> device is up the link can be brought up.
> 
>> Therefore if you invoke netif_carrier_off() right after
>> register_netdevice(), it can cancel out a legitimate
>> netif_carrier_on() call.
> 
> register_netdevice() should be call in probe(), at that time, is
> it impossible to bring up device because the driver loading has
> not finished?

Scripts in userspace listen for device events, such as registry, and
in response can immediately open the device.

That can occur before register_netdevice() returns, it is completely
and %100 asynchronous.
--
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