lkml.org 
[lkml]   [2022]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v3 0/3] Fix high cpu usage of ubi_bgt thread and an uaf problem
Date
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

\
 
 \ /
  Last update: 2022-05-10 14:17    [W:0.199 / U:0.452 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site