Skip to content

RFC mm/damon/sysfs-schemes: fix use-after-free for [memcg_]path

SeongJae Park damon linux-mm lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm/damon/sysfs-schemes: protect memcg_path kfree() with damon_sysfs_lockmm/damon/sysfs-schemes.c+11 -11 reply
2/2mm/damon/sysfs-schemes: protect path kfree() with damon_sysfs_lockmm/damon/sysfs-schemes.c+11 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] mm/damon/sysfs-schemes: fix use-after-free for [memcg_]path

Reads of 'path' and 'memcg_path' files in DAMON sysfs interface could race with their writes, results in use-after-free. Fix those.

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: 0d45806f3a75bf53e59475b0e56be324f650ab09

Signature · 1 line
2.47.3