[RFC PATCH 6.12.y 0/2] mm/damon/sysfs: fix pid leaks from wrong error handlings
From: SJ Park
Date: Wed Oct 28 2026 - 00:27:14 EST
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: cdfe28f3e9f0e6bfc80fca63d2defc5eb972d56c
--
2.47.3