Re: [PATCH] mm/damon/sysfs: Fix an array out-of-bounds read error due

From: Andrew Morton
Date: Wed Mar 02 2022 - 15:53:38 EST


On Wed, 2 Mar 2022 18:02:52 +0000 Colin Ian King <colin.i.king@xxxxxxxxx> wrote:

> There is an off-by-one error in the upper limit to a for-loop that
> causes an out-of-bounds read error on the array
> damon_sysfs_wmark_metric_strs. Fix the comparison by replacing
> the <= operator with <.
>

Thanks, we already have
https://lkml.kernel.org/r/20220301185619.2904-1-sj@xxxxxxxxxx