[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250827115858.1186261-1-yanquanmin1@huawei.com>
Date: Wed, 27 Aug 2025 19:58:56 +0800
From: Quanmin Yan <yanquanmin1@...wei.com>
To: <sj@...nel.org>
CC: <akpm@...ux-foundation.org>, <damon@...ts.linux.dev>,
<linux-kernel@...r.kernel.org>, <linux-mm@...ck.org>,
<yanquanmin1@...wei.com>, <wangkefeng.wang@...wei.com>, <zuoze1@...wei.com>
Subject: [PATCH 0/2] mm/damon: void divide-by-zero in DAMON module's parameters application
DAMON's RECLAIM or LRU_SORT modules perform no validation on
user-configured parameters during application, which may lead
to division-by-zero errors.
Avoid the divide-by-zero by adding validation checks when DAMON
modules attempt to apply the parameters.
Changes from RFC v1
(https://lore.kernel.org/all/20250826033653.1208227-1-yanquanmin1@huawei.com/)
- No code changes.
- Drop RFC tag.
- Add 'Cc: stable@' tags to each patch.
Quanmin Yan (2):
mm/damon/lru_sort: avoid divide-by-zero in
damon_lru_sort_apply_parameters()
mm/damon/reclaim: avoid divide-by-zero in
damon_reclaim_apply_parameters()
mm/damon/lru_sort.c | 5 +++++
mm/damon/reclaim.c | 5 +++++
2 files changed, 10 insertions(+)
--
2.43.0
Powered by blists - more mailing lists