Skip to content

RFC mm/damon: fix damon_call()-related leak and deadlock

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 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm/damon/sysfs: dealloc repeat_call_control if damon_call() failsmm/damon/sysfs.c+2 -10 replies
2/2mm/damon/core: fix damon_call() vs kdamond_fn() exit race deadlockinclude/linux/damon.h mm/damon/core.c+11 -312 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 0/2] mm/damon: fix damon_call()-related leak and deadlock

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

Signature · 1 line
2.47.3