Re: [PATCH] selftests/mm: mrelease_test: fix retry limit

From: SJ Park

Date: Fri Oct 02 2026 - 14:59:18 EST


On Wed, 30 Sep 2026 23:00:27 -0700 Aveline Noir <jm5905938@xxxxxxxxx> wrote:

> mrelease_test doubles the child allocation when process_mrelease()
> returns ESRCH.
>
> When size is already MAX_SIZE_MB, the current <= check still allows
> another retry, causing the allocation to grow from 1024 MB to 2048 MB.
>
> Use < instead of <= so the largest allocation attempted remains
> MAX_SIZE_MB.

Makes sense to me.

>
> LLM used in discovering bug. Changes were made and reviewed manually.
>
> Fixes: 33776141b812 ("selftests: vm: add process_mrelease tests")
> Assisted-by: LLM
> Signed-off-by: Aveline Noir <jm5905938@xxxxxxxxx>

Reviewed-by: SJ Park <sj@xxxxxxxxxx>


Thanks,
SJ

[...]