Re: [PATCH 4/4] selftests/vm: add test for mlock() when areas are intersected.

From: David Rientjes
Date: Wed Aug 31 2016 - 19:14:25 EST


On Tue, 30 Aug 2016, wei.guo.simon@xxxxxxxxx wrote:

> From: Simon Guo <wei.guo.simon@xxxxxxxxx>
>
> This patch adds mlock() test for multiple invocation on
> the same address area, and verify it doesn't mess the
> rlimit mlock limitation.
>

Thanks for expanding mlock testing. I'm wondering if you are interested
in more elaborate testing that doesn't only check what you are fixing,
such as mlock(p + x, 40k) where x is < 20k?

Would you also be willing to make sure that the rlimit is actually
enforced when it's expected to?