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 mm-unstable 0/2] mm/damon/sysfs-schemes: avoid updating
Date: Mon, 14 Nov 2022 18:29:52 +0000 [thread overview]
Message-ID: <20221114182954.4745-1-sj@kernel.org> (raw)
A DAMON sysfs interface user can start DAMON with a scheme, remove the
sysfs directory for the scheme, and then ask clears/updates of the
scheme's tried regions. Because the schemes tried regions clear/update
logic doesn't aware of the situation, it results in an invalid memory
access. Fix the bugs by checking if the scheme sysfs directory exists.
This patchset is fixing commits in mm-unstable. Andrew, please meld the
first patch into "mm/damon/sysfs: implement DAMOS tried regions update
command"[1], and the second patch into "mm/damon/sysfs-schemes:
implement DAMOS-tried regions clear command"[2].
[1] https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-damon-sysfs-implement-damos-tried-regions-update-command.patch
[2] https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-damon-sysfs-schemes-implement-damos-tried-regions-clear-command.patch
SeongJae Park (2):
mm/damon/sysfs-schemes: skip tried regions update if the scheme
directory has removed
mm/damon/sysfs-schemes: skip schemes regions clearing if the scheme
directory has removed
mm/damon/sysfs-schemes.c | 9 +++++++++
1 file changed, 9 insertions(+)
--
2.25.1
next reply other threads:[~2022-11-14 18:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-14 18:29 SeongJae Park [this message]
2022-11-14 18:29 ` [PATCH mm-unstable 1/2] mm/damon/sysfs-schemes: skip tried regions update if the scheme directory has removed SeongJae Park
2022-11-14 18:29 ` [PATCH mm-unstable 2/2] mm/damon/sysfs-schemes: skip schemes regions clearing " 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=20221114182954.4745-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