JFFS2 check fault

adriacom2232 at adriacom.it adriacom2232 at adriacom.it
Mon Mar 8 07:12:11 EST 2004


Hi,
sometimes, during boot sequence, the system I'm working on doesn't boot: the
JFFS2 issues a data CRC failure and the kernel goes in panic!
Panic is caused by a illegal memory access due to the fact that the JFFS's
check function uses inodes "cdata" parameter to define how many bytes it has
to read to perform CRC checking on data. Unfortunatelly this size is bigger
than that allocated by the driver in a temporary buffer (RAM).
The problem is that a previous JFFS's write contains bad inode "csize"
value: bigger than PAGE_SIZE. It is not caused by a defective write to flash
because the inode CRC is correct.
I'am using JFFS2 version 2.1 included in the Handhelds linux distribution
(kernel 2.4.7).

Do next releases of JFFS2 fix this bug?
The problem appears very seldom and is difficult to catch.
Any suggestion will be apreciated.

Michele





More information about the linux-mtd mailing list