All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] mm/damon/core: fix memory leaks and ignored inputs from damon_commit_ctx()
@ 2024-12-22 23:12 SeongJae Park
  2024-12-22 23:12 ` [PATCH 1/2] mm/damon/core: fix new damon_target objects leaks on damon_commit_targets() SeongJae Park
  2024-12-22 23:12 ` [PATCH 2/2] mm/damon/core: fix ignored quota goals and filters of newly committed schemes SeongJae Park
  0 siblings, 2 replies; 3+ messages in thread
From: SeongJae Park @ 2024-12-22 23:12 UTC (permalink / raw)
  To: Andrew Morton; +Cc: SeongJae Park, damon, linux-mm, linux-kernel

Due to two bugs in damon_commit_targets() and damon_commit_schemes(),
which are called from damon_commit_ctx(), some user inputs can be
ignored, and some mmeory objects can be leaked.  Fix those.

Note that only DAMON sysfs interface users are affected.  Other DAMON
core API user modules that more focused more on simple and dedicated
production usages, including DAMON_RECLAIM and DAMON_LRU_SORT are not
using the buggy function in the way, so not affected.

SeongJae Park (2):
  mm/damon/core: fix new damon_target objects leaks on
    damon_commit_targets()
  mm/damon/core: fix ignored quota goals and filters of newly committed
    schemes

 mm/damon/core.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)


base-commit: a2b6c37664ce2d7ab39837dae4078fcb01078f13
-- 
2.39.5


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-12-22 23:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-22 23:12 [PATCH 0/2] mm/damon/core: fix memory leaks and ignored inputs from damon_commit_ctx() SeongJae Park
2024-12-22 23:12 ` [PATCH 1/2] mm/damon/core: fix new damon_target objects leaks on damon_commit_targets() SeongJae Park
2024-12-22 23:12 ` [PATCH 2/2] mm/damon/core: fix ignored quota goals and filters of newly committed schemes SeongJae Park

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.