UBI VID header corruption, offset data

Iwo Mergler Iwo.Mergler at netcommwireless.com
Wed Dec 18 23:39:42 EST 2013


Hi all,


I'm encountering a rather surprising VID header corruption. Kernel
version is derived from 3.5.0-preempt, with a bunch of probably
unrelated vendor patches.

After the system has operated normally for a while (=days), the initial
UBI block scan at boot time reports this:

[    2.390000] UBI error: check_corruption: PEB 402 contains corrupted VID header, and the data does not contain all 0xFF, this may be a non-UBI PEB or a severe VID header corruption which requires manual inspection
[    3.860000] UBI error: check_corruption: PEB 1176 contains corrupted VID header, and the data does not contain all 0xFF, this may be a non-UBI PEB or a severe VID header corruption which requires manual inspection
[    4.040000] UBI error: check_corruption: PEB 1177 contains corrupted VID header, and the data does not contain all 0xFF, this may be a non-UBI PEB or a severe VID header corruption which requires manual inspection
[    5.430000] UBI error: late_analysis: 3 PEBs are corrupted and preserved

All three header pages (2K) are corrupted the same way (see below).

The page starts with 29 0-bytes, followed by 11 0xff-bytes. An
otherwise normal looking header starts at an offset of 40 bytes
from its normal position. Finally, there is an unexpected 0xFF
byte at the end of the page.

Has anyone encountered such a thing before?


Best regards,

Iwo

====

Here is a good VID page example for reference:

PEB257
00000000  55 42 49 21 01 01 01 00  00 00 00 00 00 00 02 45  |UBI!...........E|
00000010  00 00 00 00 00 01 80 00  00 00 00 00 00 00 00 00  |................|
00000020  00 83 72 fa 00 00 00 00  00 00 00 00 00 00 03 cb  |..rú...........Ë|
00000030  00 00 00 00 00 00 00 00  00 00 00 00 d4 08 5a bd  |............Ô.Z½|
00000040  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000800

These are the bad header pages:

PEB402
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 ff ff ff  |.............ÿÿÿ|
00000020  ff ff ff ff ff ff ff ff  55 42 49 21 01 01 01 00  |ÿÿÿÿÿÿÿÿUBI!....|
00000030  00 00 00 01 00 00 02 20  00 00 00 00 00 01 70 00  |....... ......p.|
00000040  00 00 00 00 00 00 00 00  de 85 51 17 00 00 00 00  |........Þ.Q.....|
00000050  00 00 00 00 00 00 13 4a  00 00 00 00 00 00 00 00  |.......J........|
00000060  00 00 00 00 36 d4 f2 89  00 00 00 00 00 00 00 00  |....6Ôò.........|
00000070  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000007f0  00 00 00 00 00 00 00 ff  00 00 00 00 00 00 00 00  |.......ÿ........|
00000800

PEB1176
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 ff ff ff  |.............ÿÿÿ|
00000020  ff ff ff ff ff ff ff ff  55 42 49 21 01 01 01 00  |ÿÿÿÿÿÿÿÿUBI!....|
00000030  00 00 00 01 00 00 01 bc  00 00 00 00 00 00 d0 00  |.......¼......Ð.|
00000040  00 00 00 00 00 00 00 00  ff ec 1f a6 00 00 00 00  |........ÿì.¦....|
00000050  00 00 00 00 00 00 13 4b  00 00 00 00 00 00 00 00  |.......K........|
00000060  00 00 00 00 20 4b 90 e7  00 00 00 00 00 00 00 00  |.... K.ç........|
00000070  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000007f0  00 00 00 00 00 00 00 ff  00 00 00 00 00 00 00 00  |.......ÿ........|
00000800

PEB1177
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 ff ff ff  |.............ÿÿÿ|
00000020  ff ff ff ff ff ff ff ff  55 42 49 21 01 01 00 00  |ÿÿÿÿÿÿÿÿUBI!....|
00000030  00 00 00 01 00 00 00 07  00 00 00 00 00 00 00 00  |................|
00000040  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000050  00 00 00 00 00 00 13 4c  00 00 00 00 00 00 00 00  |.......L........|
00000060  00 00 00 00 1d 0d 60 c5  00 00 00 00 00 00 00 00  |......`Å........|
00000070  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000007f0  00 00 00 00 00 00 00 ff  00 00 00 00 00 00 00 00  |.......ÿ........|
00000800

______________________________________________________________________
This communication contains information which may be confidential or privileged. The information is intended solely for the use of the individual or entity named above.  If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited.  If you have received this communication in error, please notify me by telephone immediately.
______________________________________________________________________



More information about the linux-mtd mailing list