public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: catboat@texas.net
To: David Woodhouse <dwmw2@infradead.org>
Cc: catboat@texas.net, linux-mtd@lists.infradead.org
Subject: Re: bit flip
Date: Wed, 10 Oct 2007 10:37:07 -0500	[thread overview]
Message-ID: <1192030627.470cf1a3b8f28@webmail.texas.net> (raw)
In-Reply-To: <1191991698.578.92.camel@localhost.localdomain>

Quoting David Woodhouse <dwmw2@infradead.org>:

> On Wed, 2007-10-03 at 14:32 -0500, catboat@texas.net wrote:
> > A NAND card flipped a bit and caused a data CRC problem in a data node. 
> > When I cat the file, this region is zeroes. cat exits with rc 0.
> 
> On NAND you should have ECC to prevent this failure mode.

We took two bit flips within the same 256 byte subpage. To my knowledge
ECC won't correct it, but should have returned an error.  I think 
UBI handled the error and copied what it could to a new erase block.
After that, the ECC words were correct again, but not the jffs2
CRC check. 

Regarding a change to the code, jffs2 needs to track data nodes 
that have CRC problems instead of marking them obsolete. Maybe a new
node type could represent this and save recalculating CRCs everywhere. 
Until these nodes are rewritten with newer data, I would expect readers 
of the nodes to get EIO.

Monte

  reply	other threads:[~2007-10-10 15:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-03 19:32 bit flip catboat
2007-10-10  4:48 ` David Woodhouse
2007-10-10 15:37   ` catboat [this message]
2007-10-10 17:58     ` Matt Reimer

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=1192030627.470cf1a3b8f28@webmail.texas.net \
    --to=catboat@texas.net \
    --cc=dwmw2@infradead.org \
    --cc=linux-mtd@lists.infradead.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