Messages in this thread | | | From | Zhihao Cheng <> | Subject | [PATCH v3 0/3] Fix high cpu usage of ubi_bgt thread and an uaf problem | Date | Tue, 10 May 2022 20:31:23 +0800 |
| |
v1->v2: Update fm pool filling strategy, consider reserve enough free count for fastmap non anchor pebs while filling fm_wl_pool. Remove 'fm_next_anchor' and check 'fm_anchor' during wear leveling. Check wl_pool for free peb before wear leveling. v2->v3: 1. Don't reserve beb_revd_pebs while filling fm pool. 2. Fix an uaf in ubi_create_volume()'s error handling path.
Zhihao Cheng (3): ubi: fastmap: Fix high cpu usage of ubi_bgt by making sure wl_pool not empty ubi: fastmap: Check wl_pool for free peb before wear leveling ubi: ubi_create_volume: Fix use-after-free when volume creation failed
drivers/mtd/ubi/fastmap-wl.c | 121 ++++++++++++++++++++++++++++------- drivers/mtd/ubi/fastmap.c | 11 ---- drivers/mtd/ubi/ubi.h | 4 +- drivers/mtd/ubi/vmt.c | 1 - drivers/mtd/ubi/wl.c | 33 ++++++---- drivers/mtd/ubi/wl.h | 2 + 6 files changed, 123 insertions(+), 49 deletions(-)
-- 2.31.1
| |