Re: [PATCH RESEND 6/9] selftests/mm: mremap_test: replace random data with deterministic pattern

From: David Hildenbrand (Arm)

Date: Thu Oct 01 2026 - 08:13:18 EST


On 9/24/26 07:00, Sarthak Sharma wrote:
> mremap_test uses a random data stream to detect corruption after remap
> operations. This requires seed handling and byte by byte validation,
> which is inefficient.
>
> Replace it with a deterministic pattern where every word in a page
> contains its one-based page index. Use memcpy() and memcmp() to
> initialize and validate the mappings. Remove the pattern seed and
> its command line option. Also update the comment diagrams to
> reflect the new deterministic pattern.
>
> Suggested-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>
> Signed-off-by: Sarthak Sharma <sarthak.sharma@xxxxxxx>
> ---

How will this patch change with the change in threshold handling? Does it make
sense to reshuffle the patches?

--
Cheers,

David