[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/51866: [PATCH] tests/lib/libc/sys/t_mincore: fix leak and release limit on memory to prevent false positives with mlock/mmap
>Synopsis: [PATCH] tests/lib/libc/sys/t_mincore: fix leak and release limit on memory to prevent false positives with mlock/mmap
>Arrival-Date: Sat Jan 14 01:50:00 +0000 2017
>Originator: Ngie Cooper
The attached patch...
- ... frees buf after use.
- ... sets .rlim_cur/.rlim_max for RLIMIT_MEMLOCK to RLIM_INFINITY to resolve false positives with the test case then trying to lock memory with mlock (on FreeBSD) / mmap (on NetBSD). This is being done because sometimes the process limits are set much lower for root depending on the test host.
Main Index |
Thread Index |