[RFC PATCH v1.2 0/2] mm/damon: handle zero {sample,aggr} intervals for DAMOS quota score
From: SeongJae Park
Date: Mon Jun 22 2026 - 10:14:34 EST
When the intervals are zero, divide-by-zero can happen during DAMOS
quota score calculation. Fixing it alone enables out-of-bound array
access. Fix those.
Changes from v1
- v1: https://lore.kernel.org/20260621154808.86431-1-sj@xxxxxxxxxx
- Add out-of-bound array access bug fix as patch 2.
- Add the RFC tag again.
Changes from RFC v1.1
- RFC v1.1: https://lore.kernel.org/20260620171413.89555-1-sj@xxxxxxxxxx
- Wordsmith commit message.
- Drop RFC tag.
Changes from RFC v1
- RFC v1: https://lore.kernel.org/20260619205144.150664-1-sj@xxxxxxxxxx
- Handle zero aggr_interval case.
SeongJae Park (2):
mm/damon/core: handle zero intervals in damon_max_nr_accesses()
mm/damon/ops-common: prevent >DAMON_MAX_SUBSCORE freq_subscore
include/linux/damon.h | 8 ++++++--
mm/damon/ops-common.c | 3 +++
2 files changed, 9 insertions(+), 2 deletions(-)
base-commit: 42306d32afd75f28e3f13a1259c3b52191b4ff2c
--
2.47.3