From: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
To: Theodore Tso <tytso@mit.edu>, Aioanei Rares <krnl.list@gmail.com>,
Alan Jenkins <alan-jenkins@tuffmail.co.uk>,
linux-ext4@vger.kernel.org,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Mild filesystem corruption on ext4 (no journal)
Date: Fri, 05 Jun 2009 22:34:31 +0100 [thread overview]
Message-ID: <4A298F67.8020901@tuffmail.co.uk> (raw)
In-Reply-To: <20090605180125.GB6442@mit.edu>
Theodore Tso wrote:
> On Fri, Jun 05, 2009 at 05:40:33PM +0300, Aioanei Rares wrote:
>
>>> When I upgrade libc from 2.7 (debian stable) to 2.9 (debian unstable),
>>> the locale breaks every reboot, and I have to repair it by running
>>> locale-gen. This happened now when I only upgraded libc, in order to
>>> play with signalfd(). It also happened before, when I upgraded the
>>> entire machine to debian unstable (which I later reverted).
>>>
>>> The problem is that /usr/lib/locale/locale-archive gets corrupted when
>>> I reboot. The exact corruption differs with each reboot (i.e. the
>>> md5sum differs). Last time, the first ~70K was overwritten with data
>>> from xorg.log and my web browsing history. I have copies of the
>>> original and corrupted state which I can send, the full file is 1.3
>>> megs, but I can limit it to the first 70K, since that's all that was
>>> corrupted.
>>>
>
>
>> I suspect, although I might be wrong, that this is not a kernel-related
>> problem.
>>
>
> Actually, I suspect it is indeed a kernel-related problem. The
> problem has been reported before, with a repeatable test case:
>
> http://bugzilla.kernel.org/show_bug.cgi?id=13292
>
> The problem shows up after you unmount and remount the filesystem.
> Before you the filesystem is unmounted, the locale-archive file has
> the correct md5sum. After you unmount and remount the filesystem, the
> filesystem is corrupted. I'm guessing that some data blocks aren't
> getting marked as needing writeback, so the previous contents on disk
> aren't written back. I was able to show that even though the mounted
> filesystem had the correct information, direct access to the disk
> using debugfs showed the blocks on disk had the contents that would be
> revealed after the filesystem was unmounted and remounted.
>
> The problem only shows up when using ext4 without a journal, and I was
> never able to create a simpler reproduction case. The last time I
> tried to work on this bug was approximately a month ago. About two
> weeks ago Frank from Google tried reproducing it, but he wasn't able
> to do so using his 2.6.26-based kernel plus an updated ext4.
> Unfortunately, I haven't had time to look at it since then, or to
> check to see if some of the more recent patches scheduled for the
> 2.6.31 merge window might have changed the behaviour of this bug.
>
> - Ted
>
Well, thanks for the link + explanation! I look forward to the eventual
solution.
Alan
next prev parent reply other threads:[~2009-06-05 21:33 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-05 10:49 Mild filesystem corruption on ext4 (no journal) Alan Jenkins
2009-06-05 14:40 ` Aioanei Rares
2009-06-05 14:49 ` Alan Jenkins
2009-06-05 15:20 ` Eric Sandeen
2009-06-05 16:43 ` Alan Jenkins
2009-06-05 16:51 ` Kay Sievers
2009-06-05 21:42 ` Alan Jenkins
2009-06-06 4:17 ` Henrique de Moraes Holschuh
2009-06-05 18:12 ` Eric Sandeen
2009-06-05 21:32 ` Alan Jenkins
2009-06-05 22:02 ` Eric Sandeen
2009-06-05 18:01 ` Theodore Tso
2009-06-05 21:34 ` Alan Jenkins [this message]
2009-06-05 21:42 ` Curt Wohlgemuth
2009-06-09 4:15 ` Michael Rubin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A298F67.8020901@tuffmail.co.uk \
--to=alan-jenkins@tuffmail.co.uk \
--cc=krnl.list@gmail.com \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox