From: SeongJae Park <sj@kernel.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: SeongJae Park <sj@kernel.org>,
damon@lists.linux.dev, linux-mm@kvack.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 0/2] mm/damon/core: fix memory leaks and ignored inputs from damon_commit_ctx()
Date: Sun, 22 Dec 2024 15:12:20 -0800 [thread overview]
Message-ID: <20241222231222.85060-1-sj@kernel.org> (raw)
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
next reply other threads:[~2024-12-22 23:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-22 23:12 SeongJae Park [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241222231222.85060-1-sj@kernel.org \
--to=sj@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=damon@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox