Re: [LTP] [PATCH] mm/vma04: new testcase

Caspar Zhang
2012-02-16T06:31:12Z

On 02/16/2012 02:06 PM, Caspar Zhang wrote:
>
> vma04: corner cases for mbind vma merge issue
>
> There are several corner cases (documented in mm/mmap.c) for mbind
> vma merge issue, which makes commit 8aacc9f550 slightly incorrect.
> KOSAKI Motohiro made a patch for it (commit e26a511) and composed
> a reproducer containing these corner cases. Now I backport it to
> LTP.
>
> Signed-off-by: Caspar Zhang <caspar@casparzhang.com>
> ---
> runtest/mm | 1 +
> testcases/kernel/mem/vma/vma04.c | 320 ++++++++++++++++++++++++++++++++++++++
> 2 files changed, 321 insertions(+), 0 deletions(-)
> create mode 100644 testcases/kernel/mem/vma/vma04.c
>

Test Status:

On a unpatched kernel:

# ./vma04
vma04 1 TFAIL : case4: failed. expect '2,4', actual '1,4'
vma04 2 TPASS : case5: passed.
vma04 3 TPASS : case6: passed.
vma04 4 TPASS : case7: passed.
vma04 5 TPASS : case8: passed.

On a patched kernel:

# ./vma04
vma04 1 TPASS : case4: passed.
vma04 2 TPASS : case5: passed.
vma04 3 TPASS : case6: passed.
vma04 4 TPASS : case7: passed.
vma04 5 TPASS : case8: passed.

Thanks,
Caspar