summaryrefslogtreecommitdiffstats
path: root/fs/ubifs
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2018-05-28 22:04:32 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-03 11:27:03 +0200
commit9211df81e8a3a60cb525d995833976f34633f9b8 (patch)
treee7af0c2c0741f47e1158df7cc84cc043389770d8 /fs/ubifs
parent2162ded7497fedcf4670ae8a2ef2fd6b374d541b (diff)
downloadlinux-stable-9211df81e8a3a60cb525d995833976f34633f9b8.tar.gz
linux-stable-9211df81e8a3a60cb525d995833976f34633f9b8.tar.bz2
linux-stable-9211df81e8a3a60cb525d995833976f34633f9b8.zip
ubi: fastmap: Correctly handle interrupted erasures in EBA
commit 781932375ffc6411713ee0926ccae8596ed0261c upstream. Fastmap cannot track the LEB unmap operation, therefore it can happen that after an interrupted erasure the mapping still looks good from Fastmap's point of view, while reading from the PEB will cause an ECC error and confuses the upper layer. Instead of teaching users of UBI how to deal with that, we read back the VID header and check for errors. If the PEB is empty or shows ECC errors we fixup the mapping and schedule the PEB for erasure. Fixes: dbb7d2a88d2a ("UBI: Add fastmap core") Cc: <stable@vger.kernel.org> Reported-by: martin bayern <Martinbayern@outlook.com> Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ubifs')
0 files changed, 0 insertions, 0 deletions