linux/drivers/mtd/ubi
Richard Weinberger 74f2c6e9a4 ubi: Be more paranoid while seaching for the most recent Fastmap
Since PEB erasure is asynchornous it can happen that there is
more than one Fastmap on the MTD. This is fine because the attach logic
will pick the Fastmap data structure with the highest sequence number.

On a not so well configured MTD stack spurious ECC errors are common.
Causes can be different, bad hardware, wrong operating modes, etc...
If the most current Fastmap renders bad due to ECC errors UBI might
pick an older Fastmap to attach from.
While this can only happen on an anyway broken setup it will show
completely different sympthoms and makes finding the root cause much
more difficult.
So, be debug friendly and fall back to scanning mode of we're facing
an ECC error while scanning for Fastmap.

Cc: <stable@vger.kernel.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
2016-07-29 23:32:54 +02:00
..
attach.c ubi: Be more paranoid while seaching for the most recent Fastmap 2016-07-29 23:32:54 +02:00
block.c
build.c ubi: Fix early logging 2016-07-29 23:31:55 +02:00
cdev.c wrappers for ->i_mutex access 2016-01-22 18:04:28 -05:00
debug.c UBI: Silence an unintialized variable warning 2016-05-24 15:24:30 +02:00
debug.h
eba.c ubi: Make recover_peb power cut aware 2016-06-23 00:29:32 +02:00
fastmap-wl.c
fastmap.c ubi: Check whether the Fastmap anchor matches the super block 2016-07-29 23:32:43 +02:00
gluebi.c ubi: gluebi: Fix double refcounting 2016-07-29 23:31:54 +02:00
io.c ubi: Only read necessary size when reading the VID header 2016-07-29 23:29:44 +02:00
kapi.c ubi: Don't bypass ->getattr() 2016-06-14 10:51:42 +02:00
Kconfig
Makefile
misc.c mtd: ubi: Add logging functions ubi_msg, ubi_warn and ubi_err 2016-03-20 21:36:05 +01:00
ubi-media.h
ubi.h ubi: Be more paranoid while seaching for the most recent Fastmap 2016-07-29 23:32:54 +02:00
upd.c ubi: Fix out of bounds write in volume update code 2016-03-05 21:56:23 +01:00
vmt.c ubi: Make volume resize power cut aware 2016-07-29 23:32:01 +02:00
vtbl.c
wl.c ubi: Rework Fastmap attach base code 2016-07-29 23:32:42 +02:00
wl.h