I see some odd data corruption on the device below. There is no IO error
in dmesg. The corruption is at random offset.

Its like:
md5sum foo > /x
cp foo /mnt
umount /mnt
mount /mnt
cd /mnt
md5sum -c /x , and it fails.
running xxd and diff shows differences at a random offset, like:


lemon:~ # mke2fs /dev/sdc6
lemon:~ # md5sum -c MD5SUMS.kernel
kernel-default-2.6.5-20040903.ppc.rpm: OK
kernel-default-2.6.8-20040921.ppc.rpm: OK
lemon:~ # for i in `seq 0 42` ; do mount -nvt ext2 /dev/sdc6 /mnt || break ; cd /mnt ; 
cp -av /root/kernel-default-2.6.* . || break ; cd /root ; umount -nv /mnt ; mount -nvt 
ext2 /dev/sdc6 /mnt ; cd /mnt ; md5sum -c /root/MD5SUMS.kernel || break ; cd /root/ ; 
umount -vn /mnt ; done

[ ... 16 iterations ... ]

/dev/sdc6 on /mnt type ext2 (rw)
`/root/kernel-default-2.6.5-20040903.ppc.rpm' -> 
`./kernel-default-2.6.5-20040903.ppc.rpm'
`/root/kernel-default-2.6.8-20040921.ppc.rpm' -> 
`./kernel-default-2.6.8-20040921.ppc.rpm'
/dev/sdc6 umounted
/dev/sdc6 on /mnt type ext2 (rw)
kernel-default-2.6.5-20040903.ppc.rpm: FAILED
kernel-default-2.6.8-20040921.ppc.rpm: OK
md5sum: WARNING: 1 of 2 computed checksums did NOT match
lemon:/mnt # cp -av kernel-default-2.6.* /dev/shm/
`kernel-default-2.6.5-20040903.ppc.rpm' -> 
`/dev/shm/kernel-default-2.6.5-20040903.ppc.rpm'
`kernel-default-2.6.8-20040921.ppc.rpm' -> 
`/dev/shm/kernel-default-2.6.8-20040921.ppc.rpm'
lemon:/mnt # cd /dev/shm/
lemon:/dev/shm # md5sum -c /root/MD5SUMS.kernel
kernel-default-2.6.5-20040903.ppc.rpm: FAILED
kernel-default-2.6.8-20040921.ppc.rpm: OK
md5sum: WARNING: 1 of 2 computed checksums did NOT match
lemon:/dev/shm # xxd /dev/shm/kernel-default-2.6.5-20040903.ppc.rpm > /tmp/2.xxd
lemon:/dev/shm # xxd /root/kernel-default-2.6.5-20040903.ppc.rpm > /tmp/1.xxd
lemon:/dev/shm # diff -u /tmp/1.xxd /tmp/2.xxd | grep -Em 1 '^-[^-]'
-069fc40: f041 fe7e bad8 104f b3fd 950a 3dd9 fb18  .A.~...O....=...
lemon:/dev/shm # diff -u /tmp/1.xxd /tmp/2.xxd | grep -A3 ^.069fc40
-069fc40: f041 fe7e bad8 104f b3fd 950a 3dd9 fb18  .A.~...O....=...
-069fc50: 08be d3fd 7a69 7157 4823 d7e9 9777 1755  ....ziqWH#...w.U
-069fc60: 7f0c 5dc5 1771 1ddc 51dd 2048 8c81 2084  ..]..q..Q. H.. .
-069fc70: 8120 0fe6 7f06 8f9d 8801 c515 50d5 d777  . ..........P..w
--
+069fc40: f041 fe7e bad8 fe7e 76bc 8998 b7d3 b9b7  .A.~...~v.......
+069fc50: f1e2 fd6f fb73 ca22 2222 2222 2222 2223  ...o.s.""""""""#
+069fc60: de4e 597c cb4b 20c5 0fc7 dbbe ee7b d875  .NY|.K ......{.u
+069fc70: 76fc a207 b27b 1fb9 ffad 5ffc 3eb7 f9ef  v....{...._.>...
lemon:/dev/shm #


I tried this one 2 times, and it showed the same diff out put.
That makes me wonder.


Any idea how to track this down? Drive bug, kernel bug?

It was reported on an intel box with the hardware data below, but I can
also reproduce it on ppc32 with a VIA USB2 controller.

It was reported with our 2.6.5 kernel as well as with our 2.6.9rc2
kernel, single CPU.

0000:00:00.0 Host bridge: Intel Corp. 82845G/GL [Brookdale-G] Chipset Host Bridge (rev 
03)
0000:00:01.0 PCI bridge: Intel Corp. 82845G/GL [Brookdale-G] Chipset AGP Bridge (rev 
03)
0000:00:1d.0 USB Controller: Intel Corp. 82801DB USB (Hub #1) (rev 02)
0000:00:1d.1 USB Controller: Intel Corp. 82801DB USB (Hub #2) (rev 02)
0000:00:1d.2 USB Controller: Intel Corp. 82801DB USB (Hub #3) (rev 02)
0000:00:1d.7 USB Controller: Intel Corp. 82801DB USB2 (rev 02)
0000:00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB/EB PCI Bridge (rev 82)
0000:00:1f.0 ISA bridge: Intel Corp. 82801DB LPC Interface Controller (rev 02)
0000:00:1f.1 IDE interface: Intel Corp. 82801DB Ultra ATA Storage Controller (rev 02)
0000:00:1f.3 SMBus: Intel Corp. 82801DB/DBM SMBus Controller (rev 02)
0000:00:1f.5 Multimedia audio controller: Intel Corp. 82801DB AC'97 Audio Controller 
(rev 02)
0000:01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G400 AGP (rev 85)
0000:02:08.0 Ethernet controller: Intel Corp. 82801BD PRO/100 VE (LOM) Ethernet 
Controller (rev 82)




T:  Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 6
B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.8-24-default ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=0000:00:1d.7
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=256ms

T:  Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=04cf ProdID=8818 Rev=a3.01
S:  Manufacturer=Myson Century, Inc.
S:  Product=USB Mass Storage Device
S:  SerialNumber=100
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 10mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=05 Prot=50 Driver=usb-storage
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

T:  Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.8-24-default uhci_hcd
S:  Product=UHCI Host Controller
S:  SerialNumber=0000:00:1d.2
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.8-24-default uhci_hcd
S:  Product=UHCI Host Controller
S:  SerialNumber=0000:00:1d.1
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc= 93/900 us (10%), #Int=  1, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.8-24-default uhci_hcd
S:  Product=UHCI Host Controller
S:  SerialNumber=0000:00:1d.0
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  3 Spd=1.5 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=046d ProdID=c016 Rev= 3.40
S:  Manufacturer=Logitech
S:  Product=Optical USB Mouse
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbhid
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=10ms




scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: SAMSUNG   Model: MP0804H           Rev: UE10
  Type:   Direct-Access                      ANSI SCSI revision: 02
USB Mass Storage device found at 3
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
SCSI device sda: 156368016 512-byte hdwr sectors (80060 MB)
sda: assuming drive cache: write through
 sda: sda1 < sda5 sda6 >
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,  type 0

-- 
USB is for mice, FireWire is for men!

sUse lINUX ag, nÃRNBERG


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to