[lkml]   [2000]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject2.4.0-test11 ext2 fs corruption
Hi Al,
during weekend I was uncompressing XFree (Debian's 4.0.1-7) at home,
with 2.4.0-test11 running on Celeron 300A, 128MB RAM, SMP kernel on up.
It failed to compile lbxproxy/di/main.c. After some investigation I found
that they were overwritten by some source font data. fsck did not reveal
any croslinked clusters, nothing. Filesystem itself uses 4KB clusters.

Today I found some spare time and investigated it further. There is
same data contents in:

programs/lbxproxy/di/init.c 0-8720 fonts/bdf/75dpi/lubR24.bdf 0x5000-0x7210
lbxfuncs.c 0x0000-0x0EC0 lubR24.bdf 0x8000-0x8EC0
0x0EC1-0x0FFF zero
0x1000-0x5ABC lutBS08.bdf 0x0000-0x4ABC
0x5ABD-0x5FFF zero
0x6000-0x92C1 lutBS10.bdf 0x0000-0x32C1
lbxutil.c 0x0000-0x1E27 lutBS10.bdf 0x4000-0x5E27
0x1E28-0x1FFF zero
0x2000-0x3452 lutBS12.bdf 0x0000-0x1452
main.c 0-4614 lutBS12.bdf 0x2000-0x3206
options.c 0x0000-0x222E lutBS12.bdf 0x4000-0x622E
0x222F-0x2FFF zero
0x3000-0x4E30 lutBS14.bdf 0x0000-0x1E30
pm.c 0-11706 lutBS14.bdf 0x2000-0x4DA8
(blocks 722433-722459) (blocks 558899-~558927)

Other files are intouch. As you can see, somewhat disk blocks
ended somewhere else than they should in addition to correct place.
I also found that data after end of file in di/*.c files are not
cleared, so maybe that ide driver did a mistake? But I was not able
to find how to convert either block address, or LBA adress, or CHS
address (drive uses 839/240/63, but I hope that it runs in LBA) to
get 558899 from 722433 or vice versa.

Motherboard is i440BX, HDD was IDE TOSHIBA MK6409MAV on secondary IDE,
running UDMA2.

Nobody complained - neither IDE nor kernel nor ext2, just data were
damaged. Machine does not have any other problems, so I have no idea
what caused this incident. Maybe I stressed MM system too much with
some gnome app during untar?

And last note, according to debian/scripts/source.unpack, programs/lbxproxy
was created first, and fonts/bdf/... was created after that (i.e.
X401src-1 was decompressed first, X401src-2_debian was decompressed
second). This also agrees with zeroed bytes in these datablocks.
Petr Vandrovec

P.S.: Ted, why field 'Blocks: XXX' in debugfs (1.19) is 'Sectors: '
in reality (it reports blocks * 8, so I assume (as I have 4KB clusters)
that it converts it to sector count)?
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:47    [W:0.036 / U:2.420 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site