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

From: Simon Guo
Date: Thu Sep 01 2016 - 03:15:04 EST


Hi David,
On Wed, Aug 31, 2016 at 04:14:14PM -0700, David Rientjes wrote:
> 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?
I'd like to do so.
Let me think more for the comprehensive testing. If you have any other
test cases in mind, please let me know.

Thanks,
- Simon