[Devel] [PATCH vz10 v2 2/2] ms/selftests/damon/damon_nr_regions: sort collected regiosn before checking with min/max boundaries
Konstantin Khorenko
khorenko at virtuozzo.com
Wed Sep 2 20:56:42 MSK 2026
On Tue, 01 Sep 2026 02:13:26 +0300, Eva Kurchatova <eva.kurchatova at virtuozzo.com> wrote:
> damon_nr_regions.py starts DAMON, periodically collect number of regions
> in snapshots, and see if it is in the requested range. The check code
> assumes the numbers are sorted on the collection list, but there is no
> such guarantee. Hence this can result in false positive test success.
> Sort the list before doing the check.
>
> Link: https://lkml.kernel.org/r/20250225222333.505646-4-sj@kernel.org
> Fixes: 781497347d1b ("selftests/damon: implement test for min/max_nr_regions")
> Signed-off-by: SeongJae Park <sj at kernel.org>
> Cc: Shuah Khan <shuah at kernel.org>
> Cc: <stable at vger.kernel.org>
> Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
> (cherry picked from commit 582ccf78f6090d88b1c7066b1e90b3d9ec952d08)
>
> [...]
Reviewed-by: Konstantin Khorenko <khorenko at virtuozzo.com>
--
Konstantin Khorenko <khorenko at virtuozzo.com>
More information about the Devel
mailing list