[LTP] [PATCH v4] syscalls: munmap: Add munmap04 to check ENOMEM

Andrea Cervesato andrea.cervesato@suse.com
Tue Jul 8 16:11:37 CEST 2025


On 7/8/25 2:01 PM, Ricardo B. Marlière wrote:
> Even if we restore it in the cleanup() like how I suggested? The default
> is usually 65530 [1] [2] but can be quite high on other systems, e.g.
> Tumbleweed:
>
> $ cat /proc/sys/vm/max_map_count
> 1048576
>
> [1]:https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/linux/mm.h?id=dfba48a70cb68888efb494c9642502efe73614ed#n193
> [2]:https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/admin-guide/sysctl/vm.rst?id=dfba48a70cb68888efb494c9642502efe73614ed#n480
>
> Thanks for reviewing,
> -	Ricardo.

@Cyril what do you think?

The alternative is to set the value and using tst_test.save_restore

- Andrea



More information about the ltp mailing list