mm/damon/sysfs-schemes: fix use-after-free for [memcg_]path
Status from this message: [merged mm-hotfixes-stable] mm-damon-sysfs-schemes-protect-path-kfree-with-damon_sysfs_lock.patch removed from -mm tree
Get series with b4
b4 am [email protected]Versions newest first
Changes from v2 from the cover letter
- v2: https://lore.kernel.org/[email protected]
- Split patch for individual fixes commits.
- Hand-off authorship to SJ, give Co-developed-by: to Junxi.
- Use mutex_trylock() instead of mutex_lock().
- Add RFC tag for Sashiko review round.
- Wordsmith commit messages.
Patches in v1 All 2 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | mm/damon/sysfs-schemes: protect memcg_path kfree() with damon_sysfs_lockmm/ | +11 | 0 replies | Applied |
| 2/2 | mm/damon/sysfs-schemes: protect path kfree() with damon_sysfs_lockmm/ | +11 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] mm/damon/sysfs-schemes: fix use-after-free for [memcg_]path
Reads of 'memcg_path' and 'path' files in DAMON sysfs interface could race with their writes, results in use-after-free. Fix those.
Changes from RFC
- rfc: https://lore.kernel.org/[email protected]
- Fix a typo in commit description.
- Drop RFC tag.
- Rebase to latest mm-hotfixes-unstable.
Changes from v2
- v2: https://lore.kernel.org/[email protected]
- Split patch for individual fixes commits.
- Hand-off authorship to SJ, give Co-developed-by: to Junxi.
- Use mutex_trylock() instead of mutex_lock().
- Add RFC tag for Sashiko review round.
- Wordsmith commit messages.
Changes from v1
- v1: https://lore.kernel.org/[email protected]
- Protect not only user-writes but also user-reads.
SeongJae Park (2):
mm/damon/sysfs-schemes: protect memcg_path kfree() with
damon_sysfs_lock
mm/damon/sysfs-schemes: protect path kfree() with damon_sysfs_lock
mm/damon/sysfs-schemes.c | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-)
base-commit: 26232ccdfcc7029d92b633b01f5f22913ab72168
Signature · 1 line
2.47.3