[RFC PATCH 0/2] mm/damon: fix damon_call()-related leak and deadlock

From: SeongJae Park

Date: Thu Mar 26 2026 - 02:26:48 EST


DAMON_SYSFS can leak memory due to improper handling of damon_call()
failure. It can also cause a deadlock due to a race between
damon_call() and kdamond_fn() termination. Fix those.

SeongJae Park (2):
mm/damon/sysfs: dealloc repeat_call_control if damon_call() fails
mm/damon/core: fix damon_call() vs kdamond_fn() exit race deadlock

include/linux/damon.h | 1 +
mm/damon/core.c | 41 ++++++++++-------------------------------
mm/damon/sysfs.c | 3 ++-
3 files changed, 13 insertions(+), 32 deletions(-)


base-commit: 2b3fbc1796d335685d9b7a825c621914a1c97d1d
--
2.47.3