diff options
author | Richard Weinberger <richard@nod.at> | 2016-08-24 14:36:14 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-25 10:18:33 +0200 |
commit | 000b4c28bb28d471662a7d8fed80c9f511afe4cf (patch) | |
tree | 11f287c6d05c27baab1cded6ea9956e17671f23e /scripts/gdb/linux/utils.py | |
parent | faf2b8d929a47809eab04f17e21f44ebae377dc6 (diff) |
ubi: Fix races around ubi_refill_pools()
commit 2e8f08deabbc7eefe4c5838aaa6aa9a23a8acf2e upstream.
When writing a new Fastmap the first thing that happens
is refilling the pools in memory.
At this stage it is possible that new PEBs from the new pools
get already claimed and written with data.
If this happens before the new Fastmap data structure hits the
flash and we face power cut the freshly written PEB will not
scanned and unnoticed.
Solve the issue by locking the pools until Fastmap is written.
Cc: <stable@vger.kernel.org>
Fixes: dbb7d2a88d ("UBI: Add fastmap core")
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions