From: SJ Park <sj@kernel.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: SJ Park <sj@kernel.org>,
stable@vger.kernel.org, Yunjeong Mun <yunjeong.mun@sk.com>,
damon@lists.linux.dev, linux-kernel@vger.kernel.org,
linux-mm@kvack.org
Subject: [PATCH 0/2] mm/damon: avoid division by zero from damos_quota_score()
Date: Mon, 3 Aug 2026 06:40:31 -0700 [thread overview]
Message-ID: <20260803134034.15217-1-sj@kernel.org> (raw)
DAMON_SAMPLE_MTIER and DAMON_LRU_SORT allow the user to trigger division
by zero in damos_quota_score(). Avoid it by adding parameters
validation checks.
Changes from RFC v2
- RFC v2: https://lore.kernel.org/20260802162050.89477-1-sj@kernel.org
- Drop RFC tag.
Changes from RFC
- RFC: https://lore.kernel.org/20260801211315.2456-1-sj@kernel.org
- Add a fix for DAMON_LRU_SORT.
SJ Park (2):
samples/damon/mtier: error out for zero quota goal target values
mm/damon/lru_sort: error out for >10000 active_mem_bp
mm/damon/lru_sort.c | 2 ++
samples/damon/mtier.c | 3 +++
2 files changed, 5 insertions(+)
base-commit: 3bf69d5b51b688b8f923a13b7f12eb9b1c6a284f
--
2.47.3
next reply other threads:[~2026-08-03 13:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-03 13:40 SJ Park [this message]
2026-08-03 13:40 ` [PATCH 1/2] samples/damon/mtier: error out for zero quota goal target values SJ Park
2026-08-03 14:06 ` sashiko-bot
2026-08-03 14:18 ` SJ Park
2026-08-03 13:40 ` [PATCH 2/2] mm/damon/lru_sort: error out for >10000 active_mem_bp SJ Park
2026-08-03 14:57 ` David Laight
2026-08-04 0:16 ` SJ 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=20260803134034.15217-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 \
--cc=stable@vger.kernel.org \
--cc=yunjeong.mun@sk.com \
/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 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.