Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 May 2006 12:33:10 +0300
From:      "Matti J. Karki" <mjk@iki.fi>
To:        freebsd-stable@freebsd.org
Subject:   Re: Reproducable file corruption on 6-STABLE
Message-ID:  <1b15366e0605140233n4e35ea99k88092b62c9315df1@mail.gmail.com>
In-Reply-To: <20060514021012.GA61053@xor.obsecurity.org>
References:  <20060512235959.GA18154@psconsult.nl> <1b15366e0605131033w3c0ddc58t563ccecdf8745ae8@mail.gmail.com> <20060514021012.GA61053@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 5/14/06, Kris Kennaway <kris@obsecurity.org> wrote:
> On Sat, May 13, 2006 at 08:33:38PM +0300, Matti J. Karki wrote:
> > On 5/13/06, Paul Schenkeveld <fb-stable@psconsult.nl> wrote:
> > >Hello,
> > >
> > >When I try to copy a large (7GB+) file from one filesystem to another =
the
> > >copy is not equal to te source file.  This behaviour can be reproduced
> > >repeatedly.
> > >
> > >Details:
> > >
> > >  - FreeBSD 6-STABLE, cvsupped yesterday
> >
> > Hi!
> >
> > I have very similar problem with my i386 6.1-STABLE installation. With
> > 6.0 there were no problems. I have already eliminated bad hardware
> > (memory, hard drive) and also overheating. I'm able to reproduce the
> > problem with quite small files. 23 megabytes has been enough to get
> > corrupted. I have softupdates enabled and the disk is an IDE drive.
>
> It is almost certainly to do with your specific hardware
> configuration, or a nonstandard disk-related kernel option you are
> using.  Please specify your configuration in detail so others can
> compare.
>

OK, here comes the details.

The machine is an HP laptop (Pavilion 4423EA) with Fujitsu MHT2030AT
IDE hard drive (28615,8MB). IDE controller is "ALi M5229 PCI Bus
Master IDE Controller" from Acer Labs Inc. The system has 1GB of RAM.
The system itself was FreeBSD 6.1-STABLE with GENERIC kernel from the
installation media (so, I haven't compiled anything). No weird kernel
options in use. Hardware should be very generic all in all.

Now I have a 6.0-STABLE with GENERIC kernel back (from the
installation media, no updates, patches, no nothing) and I have
stress-tested the system. I was not able to reproduce file corrutions
with 6.0 even though I tried to replicate all situations excactly like
with 6.1.

I have done upgrading and downgrading by using boot-only CD and
selecting USER installation set for upgrading.

Here are some relevant files and a dmesg:


/boot/loader.conf:

cpufreq_load=3D"YES"
snd_driver_load=3D"YES"

/etc/rc.conf:

hostname=3D"freebsd.my.domain"
ifconfig_sis0=3D"DHCP"
keymap=3D"finnish.iso"
linux_enable=3D"YES"
usbd_enable=3D"YES"
powerd_enable=3D"YES"

dmesg (this actually is dmesg from 6.0):

Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
=09The Regents of the University of California. All rights reserved.
FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005
    root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: mobile AMD Athlon(tm) XP2400+ (1788.94-MHz 686-class CPU)
  Origin =3D "AuthenticAMD"  Id =3D 0x6a0  Stepping =3D 0
  Features=3D0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,=
CMOV,PAT,PSE36,MMX,FXSR,SSE>
  AMD Features=3D0xc0480800<SYSCALL,MP,MMX+,3DNow+,3DNow>
real memory  =3D 1005518848 (958 MB)
avail memory =3D 974962688 (929 MB)
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <PTLTD   RSDT> on motherboard
acpi0: Power Button (fixed)
pci_link0: <ACPI PCI Link LNKA> irq 10 on acpi0
pci_link1: <ACPI PCI Link LNKB> irq 11 on acpi0
pci_link2: <ACPI PCI Link LNKC> on acpi0
pci_link3: <ACPI PCI Link LNKD> on acpi0
pci_link4: <ACPI PCI Link LNKE> on acpi0
pci_link5: <ACPI PCI Link LNKF> irq 10 on acpi0
pci_link6: <ACPI PCI Link LNKG> irq 3 on acpi0
pci_link7: <ACPI PCI Link LNKH> irq 5 on acpi0
pci_link8: <ACPI PCI Link LNKU> irq 9 on acpi0
acpi_ec0: <Embedded Controller: GPE 0x18> port 0x62,0x66 on acpi0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0
cpu0: <ACPI CPU> on acpi0
powernow0: <PowerNow! K7> on cpu0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pci1: <display, VGA> at device 5.0 (no driver attached)
ohci0: <AcerLabs M5237 (Aladdin-V) USB controller> mem
0xd0000000-0xd0000fff irq 9 at device 2.0 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <AcerLabs M5237 (Aladdin-V) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
pcm0: <Acer Labs M5451> port 0x8400-0x84ff mem 0xd0001000-0xd0001fff
irq 5 at device 6.0 on pci0
pcm0: <Conexant CX20468 AC97 Codec>
pcm0: [GIANT-LOCKED]
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
pci0: <simple comms, generic modem> at device 8.0 (no driver attached)
cbb0: <O2Micro OZ6912/6972 PCI-CardBus Bridge> irq 9 at device 10.0 on pci0
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
atapci0: <AcerLabs M5229 UDMA100 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x8080-0x808f at device 16.0 on
pci0
atapci0: using PIO transfers above 137GB as workaround for 48bit DMA
access bug, expect reduced performance
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pci0: <bridge> at device 17.0 (no driver attached)
sis0: <NatSemi DP8381[56] 10/100BaseTX> port 0x8c00-0x8cff mem
0xd0003000-0xd0003fff irq 11 at device 18.0 on pci0
sis0: Silicon Revision: DP83816A
miibus0: <MII bus> on sis0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
sis0: Ethernet address: 00:0d:9d:81:50:13
acpi_button0: <Power Button> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_acad0: <AC Adapter> on acpi0
battery0: <ACPI Control Method Battery> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FAST]
ppc0: <ECP parallel printer port> port 0x378-0x37f,0x778-0x77f irq 7
drq 0 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acp=
i0
sio0: type 16550A
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem
0xc0000-0xcefff,0xcf000-0xcf7ff,0xdb000-0xdbfff,0xdc000-0xdffff on
isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=3D0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ukbd0: Microsoft Natural\M-. Ergonomic Keyboard 4000, rev 2.00/1.73,
addr 2, iclass 3/1
kbd1 at ukbd0
uhid0: Microsoft Natural\M-. Ergonomic Keyboard 4000, rev 2.00/1.73,
addr 2, iclass 3/1
uhid1: Microsoft Microsoft Wireless Optical Mouse\M-. 1.00, rev
2.00/0.07, addr 3, iclass 3/1
Timecounter "TSC" frequency 1788941820 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 28615MB <FUJITSU MHT2030AT 009B> at ata0-master UDMA100
acd0: CDRW <TOSHIBA DVD-ROM SD-R2312/1905> at ata1-master PIO4
Trying to mount root from ufs:/dev/ad0s2a



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1b15366e0605140233n4e35ea99k88092b62c9315df1>