From: Milan Broz <mbroz@redhat.com>
To: Christoph Anton Mitterer <calestyo@scientia.net>
Cc: linux-kernel@vger.kernel.org, dm-crypt@saout.de
Subject: Re: data corruption with dmcrypt/LUKS
Date: Sun, 03 Feb 2008 23:06:11 +0100 [thread overview]
Message-ID: <47A63AD3.6080501@redhat.com> (raw)
In-Reply-To: <1202050237.3200.33.camel@fermat.scientia.net>
Christoph Anton Mitterer wrote:
> <when I diff -q -r /mnt/unencrypted /mnt/encrypted/ here, everything is
> ok but this is just, because those files are still cached in RAM>
> <unmount + close mapping + reboot>
> <create mappings and mount everything again>
>
> Here's the first problem:
> 1) When I now diff the two versions again (the unencrypted and the one
> from the encrypted partition) I get differences...
> I'm quite sure that this is not due to damaged RAM or harddisk (checked
> several times with memtest and badblocks) and the corruption is always
> the same, although not fully reproducibly.
> The filesystem tree itself seems to be the same on both discs (but I'm
> not sure if the permissions and owners are copied correctly), but there
> are differences in some (though not all) files.
> The difference is always the same, that for one or more bytes of the
> affected files, the hexcode is reduced by 0x10
> That is:
> If the file contains a byte "T" (0x74) on the unencrypted partition it
> will have a "D" (0x64) on the encrypted.
Hi,
Are you sure, that your USB-stick is not faulty ?
Could you reproduce it with different piece of hw ?
(Several strange reports for dm-crypt over USB were identified to be
USB hw faults.)
> 2) The second bug happens only rarely and leads to a panic.
> Unfortunately it's difficult to reproduce, but it always happened when I
> mkfs.ext3 on the /dev/mapper/sda2.
> There's a stack-trace printed which clearly involves some dmcrypt
> lines...
But no stack trace attached here... please attach it.
It can be known bug which was fixed in stable version some time ago
see http://lkml.org/lkml/2007/7/20/211
> btw: are there any other currently known bugs in dmcrypt? Or is it
> considered as "production stable"?
No known bugs causing data corruption, no such reports so far
for stable kernel.
Milan
--
mbroz@redhat.com
next prev parent reply other threads:[~2008-02-03 22:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-03 14:50 Christoph Anton Mitterer
2008-02-03 22:06 ` Milan Broz [this message]
2008-02-04 0:43 ` Christoph Anton Mitterer
2008-02-04 9:17 ` Milan Broz
2008-02-05 1:28 ` Christoph Anton Mitterer
[not found] ` <47B3639F.10809@yahoo.it>
2008-02-15 21:25 ` Christoph Anton Mitterer
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=47A63AD3.6080501@redhat.com \
--to=mbroz@redhat.com \
--cc=calestyo@scientia.net \
--cc=dm-crypt@saout.de \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®