From: Artem Bityutskiy <dedekind1@gmail.com>
To: micah anderson <micah@riseup.net>
Cc: linux-mtd@lists.infradead.org
Subject: Re: UBIFS error (pid 564): read_znode: bad indexing node at LEB 484:66064, error 2
Date: Fri, 30 Nov 2012 11:00:59 +0200 [thread overview]
Message-ID: <1354266059.30168.59.camel@sauron.fi.intel.com> (raw)
In-Reply-To: <87obixil6r.fsf@minnow.riseup.net>
[-- Attachment #1: Type: text/plain, Size: 1948 bytes --]
On Fri, 2012-11-16 at 11:09 -0500, micah anderson wrote:
> [ 97.273764] UBIFS error (pid 564): read_znode: bad indexing node at LEB 484:66064, error 2
> [ 97.282188] UBIFS warning (pid 564): ubifs_ro_mode: switched to read-only mode, error -22
Did you re-size you UBI partition? The corresponding code in
'read_znode' is:
if (zbr->lnum < c->main_first ||
zbr->lnum >= c->leb_cnt || zbr->offs < 0 ||
zbr->offs + zbr->len > c->leb_size || zbr->offs & 7) {
ubifs_err("bad branch %d", i);
err = 2;
goto out_dump;
}
But I do not see the 'bad branch' message. Your UBIFS code-base is so ancient?
Then, in 'out_dump' we actually dump the znode. But this is not in your
logs. Most probably because we dump with KERN_DEBUG level, which does
not make it to your console. You need to boot with the 'ignore_loglevel'
kernel parameter.
But anyway, this does not look like something related to your flash
driver - the znode CRC checksum is correct, but the contents makes no
sense. This can be an UBIFS bug, but this is the first time I see this.
Often things like this are caused by memory corruption - if you have a
buggy driver which corrupts memory and writes garbage to UBIFS memory,
this kind of stuff may happen. You can try to enable memory
instrumentation like full slab/slub debugging and red zones, and
validate your system. Read carefully the docs - AFAIR slub debugging
options in the kernel config only add debugging support, but do not
enable it by default - you need to enable it separately.
Also, try to take the latest code from a UBIFS back-port tree, although
ubifs-v2.6.32 is not supported any more, but at least it is a lot newer
than vanilla 2.6.32, which is only interesting for archaeologists
nowadays :-)
--
Best Regards,
Artem Bityutskiy
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
prev parent reply other threads:[~2012-11-30 9:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-07 21:32 UBIFS error (pid 564): read_znode: bad indexing node at LEB 484:66064, error 2 Micah Anderson
2012-11-16 8:31 ` Artem Bityutskiy
2012-11-16 16:09 ` micah anderson
2012-11-16 21:20 ` micah anderson
2012-11-30 9:04 ` Artem Bityutskiy
2012-11-30 9:00 ` Artem Bityutskiy [this message]
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=1354266059.30168.59.camel@sauron.fi.intel.com \
--to=dedekind1@gmail.com \
--cc=linux-mtd@lists.infradead.org \
--cc=micah@riseup.net \
/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