Skip to content

RFC mm/damon: handle zero {sample,aggr} intervals for DAMOS quota score

SeongJae Park damon linux-mm lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 4 repliesIn review

Changes from v1 from the cover letter

- v1: https://lore.kernel.org/[email protected]
- 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/[email protected]
- Wordsmith commit message.
- Drop RFC tag.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm/damon/core: handle zero intervals in damon_max_nr_accesses()include/linux/damon.h+6 -21 reply
2/2mm/damon/ops-common: prevent >DAMON_MAX_SUBSCORE freq_subscoremm/damon/ops-common.c+3 -03 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH v1.2 0/2] mm/damon: handle zero {sample,aggr} intervals for DAMOS quota score

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/[email protected]
- 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/[email protected]
- Wordsmith commit message.
- Drop RFC tag.
Changes from RFC v1
- RFC v1: https://lore.kernel.org/[email protected]
- 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

Signature · 1 line
2.47.3