Re: [RFC PATCH 0/2] mm/damon: void divide-by-zero in DAMON module's parameters application

From: SeongJae Park
Date: Tue Aug 26 2025 - 10:56:49 EST


On Tue, 26 Aug 2025 11:36:51 +0800 Quanmin Yan <yanquanmin1@xxxxxxxxxx> wrote:

> 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.

Thank you for finding and fixing these problems, Quanmin! All looks good,
though I think it would be better to add 'Cc: stable@' tags to each patch.


Thanks,
SJ

[...]