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>] [day] [month] [year] [list]
Message-ID: <gfek8i$7si$1@ger.gmane.org>
Date:	Wed, 12 Nov 2008 15:04:18 +0200
From:	Darius <augulis.darius@...il.com>
To:	netdev@...r.kernel.org
Cc:	linux-usb@...r.kernel.org
Subject:  cdc_ether problem

Hi All,

I'm testing my ne USB device driver for i.MX.
It works stable with serial gadget.
When using ethernet gadget, I have such problem with cdc_ether on host side:

If USB device (based on i.MX and my new driver) is first time connected to host,
cdc_ether module is loaded and everything works ok. Link "usb0" is created on both sides, and ping runs well.
BUT, if USB device is disconnected from host, cdc_ether is not unloaded. When connecting to host again,
I'm allways getting this error: "cdc_ether: probe of 5-2:1.0 failed with error -71".
Log of my device driver shows, that in this case one "Change Interface" request is not received from the host.
Below are two logs of debug kernel attached - one after succesful connection and one after failed connection.

I'm not good in USB core or networking, therefore I can't understand wheter it is cdc_ether driver problem, or bug in my hardware driver.
If I remove cdc_ether module with # rmmod cdc_ether and then connect device to host, everything is ok. Therefore I think my hardware driver works correct.
My host is x86_64 with Fedora 8 and kernel 2.6.26.6-49.fc8debug.
I'm waiting for any help and comments!

Darius.


View attachment "usb_2008_11_12-eth-bad" of type "text/plain" (14957 bytes)

View attachment "usb_2008_11_12-eth-ok" of type "text/plain" (17689 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ