Re: [RFC PATCH 7.3.y] mm/damon/core: error damos_commit_quota_goal() for zero target_value

From: Sasha Levin

Date: Sun Oct 25 2026 - 19:30:23 EST


> Notes for stable kernel porting. The upstream commit doesn't have
> Fixes: and therefore not ported to stable kernels. It turned out it
> fixes commit 8b549a4fd3c5 ("mm/damon/sysfs-schemes: commit damos quota
> goals user input to DAMOS") which was merged into v6.8. The user impact
> is a race condition that can result in divide-by-zero. Hence backport.

The older trees don't need this one. The callers in 7.2, 6.18 and 6.12
already reject a zero target_value (7.2 also has 06befa61c427
("mm/damon/lru_sort: error out for >10000 active_mem_bp") and a16fd3ad9d89
("samples/damon/mtier: error out for zero quota goal target values")), the
commit has no Fixes: or Cc: stable, and it is patch 1/3 of a series whose
patches 2 and 3 remove those caller-side checks.

--
Thanks,
Sasha