Bug#464923: linux-2.6.18-6-amd64: 3w-xxxx v1.26.02.001 causes datacorruption with AMD64/EM64T with >2GB RAM
Package: linux-2.6.18-6-amd64
Severity: critical
Tags: patch
Justification: causes serious data loss
How to reproduce:
10036:/tmp# uname -a
Linux 10036 2.6.18-6-amd64 #1 SMP Wed Jan 23 06:27:23 UTC 2008 x86_64 GNU/Linux
10036:/tmp# grep MemTotal /proc/meminfo
MemTotal: 8179992 kB
10036:/tmp# dd if=/dev/urandom bs=1048576 count=10240 | tee testfile | md5sum
00a513dc3da637c4c86557102b0e6098 -
10239+1 records in
10239+1 records out
10737297534 bytes (11 GB) copied, 1584.6 seconds, 6.8 MB/s
10036:/tmp# md5sum testfile
bfceb91a358dfc3d09e22ad74b7ebefb testfile
10036:/tmp#
How to fix:
There is a 3ware KB article on this: http://www.3ware.com/KB/article.aspx?id=15243
This includes "3ware Storage Controller device driver for Linux v1.26.03.000-2.6.18."
>From the driver:
1.26.03.000 - Use default DMA data direction to prevent data corruption
when using SWIOTLB with 4GB+ on EM64T.
Installing this fixes the problem for me.
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-vserver-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Reply to: