NetBSD-Bugs archive
[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
>Number: 51866
>Category: bin
>Synopsis: [PATCH] tests/lib/libc/sys/t_mincore: fix leak and release limit on memory to prevent false positives with mlock/mmap
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jan 14 01:50:00 +0000 2017
>Originator: Ngie Cooper
>Release: 7.0.2
>Organization:
>Environment:
n/a
>Description:
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.
>How-To-Repeat:
>Fix:
Home |
Main Index |
Thread Index |
Old Index