public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind1@gmail.com>
To: Matthieu CASTET <matthieu.castet@parrot.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: ubifs error : read_znode: bad indexing node
Date: Mon, 18 Jun 2012 23:45:17 +0300	[thread overview]
Message-ID: <1340052317.1971.14.camel@koala> (raw)
In-Reply-To: <4FD5F9D6.9020800@parrot.com>

[-- Attachment #1: Type: text/plain, Size: 1417 bytes --]

Hi,

On Mon, 2012-06-11 at 15:59 +0200, Matthieu CASTET wrote:
> we have products where rw ubifs partition are corrupted.
> They all failed with the "read_znode: bad indexing node at LEB 558:22056, error
> 6" or "read_znode: bad indexing node at LEB 446:62888, error 2".

So we read the indexing node, and its CRC is correct, but then we
validate it by checking that various fields are withing possible limits,
and we see that there is some garbage.

This smells more like memory corruption somewhere - we write garbage or
corrupted buffers to the media.

I guess it would be a good improvement to UBIFS if we validated when we
write, not only read, then we could catch issues earlier.

> The last ubifs stable commit we have is
> http://git.infradead.org/users/dedekind/ubifs-v2.6.32.git/commit/7eb3b6c0999bd2cbc37adb2bd0fb8127f98240ea

Does not look like something which could cause those errors. Is that
problem reproducible? Only on these devices or on other too?


> Do you know if the bug is known ?
> Google doesn't provide any info on this and looking at ubifs new commits don't
> provide explicit bug fix.

No, this is the first time I see such a problem.

> Are there any document that explain how znode works ?

Well, Adrian's PDF file may give some insight. znode is just an in-RAM
representation of an indexing node on the flash.

-- 
Best Regards,
Artem Bityutskiy

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2012-06-18 20:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-11 13:59 ubifs error : read_znode: bad indexing node Matthieu CASTET
2012-06-18 20:45 ` Artem Bityutskiy [this message]
2012-06-20  9:51   ` Matthieu CASTET
2012-06-20 11:03     ` Artem Bityutskiy

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=1340052317.1971.14.camel@koala \
    --to=dedekind1@gmail.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=matthieu.castet@parrot.com \
    /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