Re: [PATCH v2 6/6] tools/testing/selftests/mm: add MAP_PRIVATE-/dev/zero merge tests

From: David Hildenbrand (Arm)

Date: Tue Sep 08 2026 - 09:00:31 EST


On 9/8/26 13:23, Lorenzo Stoakes (ARM) wrote:
> Assert that MAP_PRIVATE-mapped /dev/zero mappings behave like they are
> anonymous.
>
> Test both unfaulted and faulted/unfaulted merges with page offset 0 which
> would not merge if the mappings were treated as if they were file-backed.
>
> With the recent change that makes them behave as pure anonymous mappings,
> the merges should succeed as their page offsets are equal to their
> anonymous page offsets.
>
> Signed-off-by: Lorenzo Stoakes (ARM) <ljs@xxxxxxxxxx>
> ---

Acked-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>

--
Cheers,

David