Re: [LTP] [PATCH 2/2] mm/vma01: create a bighole

Wanlong Gao
2012-07-09T12:40:52Z

> There are two mmaps in vma01, sometimes first mmap succeeds while
> second mmap might fail due to a small hole (3*ps <= hole < 6*ps)
> produced by /etc/ld.so.cache and /etc/libc.so.6, I created a big hole
> and then munmap it to make sure both allocations can succeed.

Can you share how to produce the hole and make the previous case FAIL?

Thanks,
Wanlong Gao

>
> |-3*ps-|
> |------|------|------| hole
> t p
> |======|------| top-down alloc
> |------|======| bottom-up alloc
>
> Signed-off-by: Caspar Zhang <caspar@casparzhang.com>
> ---
> testcases/kernel/mem/vma/vma01.c | 25 ++++++++++++++++++++++++-
> 1 files changed, 24 insertions(+), 1 deletions(-)
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
>
>
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list