Skip to content

RFC mm/damon/sysfs: fix pid leaks from wrong error handlings

SJ Park damon linux-mm lkml stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm/damon/sysfs: put target pids for damon_start() failuremm/damon/sysfs.c+1 -00 replies
2/2mm/damon/sysfs: put target pids for apply_inputs() failuremm/damon/sysfs.c+1 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 6.6.y 0/2] mm/damon/sysfs: fix pid leaks from wrong error handlings

DAMON sysfs interface can leak pids due to wrong error handlings. The issue in the mainline has been fixed with code refactoring. The refactoring is done with commits including 7114bc5e01cf ("mm/damon/core:
add cleanup_target() ops callback"). Porting all the refactoring
changes to old stable kernels will be challenging. Hence submitting this non-mainline hotfix series.

SJ Park (2):
mm/damon/sysfs: put target pids for damon_start() failure mm/damon/sysfs: put target pids for apply_inputs() failure

 mm/damon/sysfs.c | 2 ++
 1 file changed, 2 insertions(+)

base-commit: 4d7468bef942db9da779a5960cf42694e84397d6

Signature · 1 line
2.47.3