Re: [PATCH] selftests/mm: Confirm VA exhaustion without reliance on correctness of mmap()
From: Andrew Morton
Date: Thu Mar 21 2024 - 17:51:57 EST
On Thu, 21 Mar 2024 16:05:22 +0530 Dev Jain <dev.jain@xxxxxxx> wrote:
> Currently, VA exhaustion is being checked by passing a hint to mmap() and
> expecting it to fail. This patch makes a stricter test by successful write()
> calls from /proc/self/maps to a dump file, confirming that a free chunk is
> indeed not available.
What's wrong with the current approach?