All of lore.kernel.org
 help / color / mirror / Atom feed
From: Edward Shishkin <edward.shishkin@gmail.com>
To: Mat <jackdachef@gmail.com>
Cc: reiserfs-devel@vger.kernel.org
Subject: Re: reiser4 w. cryptcompress data-corruption (?!)
Date: Tue, 26 Feb 2008 02:44:42 +0300	[thread overview]
Message-ID: <47C352EA.5020302@gmail.com> (raw)
In-Reply-To: <loom.20080225T213801-660@post.gmane.org>

Mat wrote:

>Hi Edward,
>
>I just ran into an (seemingly) data corruption incident:
>
>here the steps to (hopefully) reproduce:
>
>1. boot up system with reiser4-formatted root-partition (cryptcompress lzo1,
>algorithm)
>2. work with it, openoffice, gnome-desktop (I had compiz activated, but I'm sure
>that's only worth a side-note)
>3. plug in an usbstick with a large enough capacity (e.g. 4 GB) or a large
>enough external usb-harddrive, now format it via
>mkfs.ntfs
>
><-- here was the point where I made the "mistake" ;), since I was concerned of
>the usbstick' life (read- and write-cycles are limited so I wanted to forcefully
>quit mkfs.ntfs and re-execute it with mkfs.ntfs -f  after that didn't help and
>the progress number stayed at around 81% I unplugged the usbstick ;)
>
>4. this should lead to a similar error message like the following in dmesg:
>
>[12423.120846] reiser4[mkfs.ntfs(22617)]: dc_check_checksum
>(fs/reiser4/plugin/file/cryptcompress.c:971)[edward-156]:
>[12423.120848] WARNING: Bad disk cluster checksum -1991768807, (should be
>1988809339) Fsck?
>[12423.120850] 
>[12423.121158] reiser4[mkfs.ntfs(22617)]: reiser4_inflate_cluster
>(fs/reiser4/plugin/file/cryptcompress.c:1138)[edward-1460]:
>[12423.121159] WARNING: Inode 75477: disk cluster 0 looks corrupted
>[12423.121307] reiser4[mkfs.ntfs(22617)]: dc_check_checksum
>(fs/reiser4/plugin/file/cryptcompress.c:971)[edward-156]:
>[12423.121308] WARNING: Bad disk cluster checksum -1991768807, (should be
>1988809339) Fsck?
>[12423.121309] 
>[12423.121472] reiser4[mkfs.ntfs(22617)]: reiser4_inflate_cluster
>(fs/reiser4/plugin/file/cryptcompress.c:1138)[edward-1460]:
>[12423.121473] WARNING: Inode 75477: disk cluster 0 looks corrupted
>  
>

Interesting, I'll try to reproduce it...

Btw, it would be nice to figure out (by find -inum 75477)
what is that file (It may shed some light to this corruption).

>5. safe your data & reboot your system with magic sysrq key
>6. I booted into a livecd & checked the reiser4-partition, there was one error
>(corrupted cluster or something, I'm apologize for not having noted it down ;( )
>after that fsck.reiser4 --build-fs
>showed thousands of errors
>  
>

Yes, the kernel doesn't support i_bytes and i_blocks of compressed files
(because of performance reason), but fsck expects this to be set properly.
The option -n suppresses the screams..

>I'm sure it would have fixed the filesystem, however I'm dependent on this box
>right now & need to work, so I played back a tarball with the system & here I am
>  
>

So eventually fsck.reiser4 --build-fs reported that fs is consistent?

>I have to give you guys involed in reiserfs creation a compliment: my /home
>partition suffered from no (0 == zero) data corruption from this incident, where
>other filesystem surely would have corrupted some files (I already had similar
>cases with other filesystems losing almost all data ;( )
>  
>

Thanks for your experience.
Edward.

>I hope you're able to reproduce this error
>
>comments:
>this is the 2nd case of ntfs-related access/contact leading to data corruption,
>I think Microsoft has included a secret data corruption mechanism in ntfs to
>destroy other opensource filesystems when accessed outside of windows ;)
>
>Thanks for your help & work
>
>Mat
>
>-
>To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>  
>


  reply	other threads:[~2008-02-25 23:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-25 21:51 reiser4 w. cryptcompress data-corruption (?!) Mat
2008-02-25 23:44 ` Edward Shishkin [this message]
     [not found] ` <a08621850802251503w10b88e3an59a5170dd41805bb@mail.gmail.com>
2008-02-26  8:57   ` Matthew
2008-02-26 10:38     ` Edward Shishkin
2008-02-26 12:06       ` Matthew
2008-03-08 19:54         ` Edward Shishkin
2008-03-09 11:05           ` Matthew

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=47C352EA.5020302@gmail.com \
    --to=edward.shishkin@gmail.com \
    --cc=jackdachef@gmail.com \
    --cc=reiserfs-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.