[LTP] [PATCH] mmap_24-1: Change vm.max_map_count if needed
Petr Vorel
pvorel@suse.cz
Wed May 7 19:53:28 CEST 2025
Hi Martin,
> If vm.max_map_count system parameter is too high, mmap24-1 may get
> killed by OOM. Set the parameter to a reasonable low value so that
> mmap() quickly fails as expected.
LGTM.
Reviewed-by: Petr Vorel <pvorel@suse.cz>
The only thing which bothers me is that writing /proc/sys/vm/max_map_count
requires root. But I'm not sure if it's worth to add more code to check UID 0.
@Li @Cyril: WDYT?
Kind regards,
Petr
More information about the ltp
mailing list