Kind of interesting behaviour in the 'dummy_hcd' device under
2.6.16.4 ... If I load, then unload the g_file_storage module, I get
either a lock-up or an Oops on my i386 box.  

I executed 'modprobe dummy_hcd', 'modprobe g_file_storage
file=/var/tmp/backing_file' and rmmod g_file_storage to get this error.

However the same process behaves itself with the net2280 driver, i.e. no
Oops and the module unloads.


dummy_hcd dummy_hcd: USB Host+Gadget Emulator, driver 02 May 2005
dummy_hcd dummy_hcd: Dummy host controller
dummy_hcd dummy_hcd: new USB bus registered, assigned bus number 1
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
dummy_udc dummy_udc: binding gadget driver 'g_file_storage'
g_file_storage gadget: File-backed Storage Gadget, version: 28 November
2005
g_file_storage gadget: Number of LUNs=1
g_file_storage gadget-lun0: ro=0, file: /var/tmp/backing_file
dummy_hcd dummy_hcd: port status 0x00010101 has changes
dummy_hcd dummy_hcd: port status 0x00010101 has changes
dummy_hcd dummy_hcd: port status 0x00100503 has changes
usb 1-1: new high speed USB device using dummy_hcd and address 2
dummy_hcd dummy_hcd: port status 0x00100503 has changes
dummy_udc dummy_udc: set_address = 2
usb 1-1: configuration #1 chosen from 1 choice
dummy_udc dummy_udc: enabled ep-a (ep1in-bulk) maxpacket 512
dummy_udc dummy_udc: enabled ep-b (ep2out-bulk) maxpacket 512
g_file_storage gadget: high speed config #1
SCSI subsystem initialized
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
  Vendor: Linux     Model: File-Stor Gadget  Rev: 0302
  Type:   Direct-Access                      ANSI SCSI revision: 02
usb-storage: device scan complete
SCSI device sda: 2000000 512-byte hdwr sectors (1024 MB)
dummy_hcd dummy_hcd: ep ep-a halted, urb ddc051c0
sda: Write Protect is off
sda: Mode Sense: 0f 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 2000000 512-byte hdwr sectors (1024 MB)
dummy_hcd dummy_hcd: ep ep-a halted, urb ddc051c0
sda: Write Protect is off
sda: Mode Sense: 0f 00 00 00
sda: assuming drive cache: write through
 sda: sda1
sd 0:0:0:0: Attached scsi disk sda
dummy_udc dummy_udc: unregister gadget driver 'g_file_storage'
dummy_udc dummy_udc: disabled ep-a
dummy_udc dummy_udc: disabled ep-b
Unable to handle kernel NULL pointer dereference at virtual address
00000180
 printing eip:
c02235c5
*pde = 00000000
Oops: 0000 [#1]
Modules linked in: sd_mod usb_storage scsi_mod g_file_storage dummy_hcd
vfat fat loop ipv6 parport_pc lp parport autofs4 sunrpc button battery
ac shpchp sk98lin floppy dm_snapshot dm_zero dm_mirror ext3 jbd dm_mod
CPU:    0
EIP:    0060:[<c02235c5>]    Not tainted VLI
EFLAGS: 00010286   (2.6.16.14 #1)
EIP is at __device_release_driver+0x44/0x74
eax: 00000000   ebx: de371e28   ecx: 00000000   edx: d0170000
esi: de371d80   edi: e0906c80   ebp: c69db000   esp: c69dbf2c
ds: 007b   es: 007b   ss: 0068
Process rmmod (pid: 28746, threadinfo=c69db000 task=d0170000)
Stack: <0>de371d80 00000286 e0906c60 c022361f de3718d0 e08c5b7c e08c74bd
e08c7123
       e08c9a24 e0903393 deefc800 00000000 00000000 e0903344 e0906d80
c012c2c9
       00000000 69665f67 735f656c 61726f74 ff006567 db9d4c24 b7fd3000
c0140ee2
Call Trace:
 [<c022361f>] device_release_driver+0x2a/0x38
 [<e08c5b7c>] usb_gadget_unregister_driver+0x98/0xd4 [dummy_hcd]
 [<e0903344>] fsg_cleanup+0x1c/0x4e [g_file_storage]
 [<c012c2c9>] sys_delete_module+0x12d/0x16a
 [<c0140ee2>] do_munmap+0xe2/0xef
 [<c0140f3e>] sys_munmap+0x4f/0x66
 [<c0102a1b>] sysenter_past_esp+0x54/0x75
Code: 03 00 00 8b 96 a8 00 00 00 8d 47 24 e8 14 e8 f5 ff ba 17 ac 30 c0
89 d8 e8 08 e8 f5 ff 8d 46 4c e8 47 d9 0a 00 8b 86 24 01 00 00 <8b> 90
80 01 00 00 85 d2 75 0a 8b 97 ac 00 00 00 85 d2 74 04 89


Any ideas?

Sean



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to