Re: [RFC] reduce hugetlb_instantiation_mutex usage

Adam Litke
2006-10-30T20:55:57Z

On Fri, 2006-10-27 at 11:47 +1000, 'David Gibson' wrote:
> libhugetlbfs: Testcase for MAP_PRIVATE OOM-liable race condition
>
> The spurious OOM condition which can be caused by race conditions in
> the hugetlb fault handler can be triggered with both SHARED mappings
> (separate processes racing on the same address_space) and with PRIVATE
> mappings (different threads racing on the same vma).
>
> At present the alloc-instantiate-race testcase only tests the SHARED
> mapping case. Since at various times kernel fixes have been proposed
> which address only one or the other of the cases, extend the testcase
> to check the MAP_PRIVATE in addition to the MAP_SHARED case.
>
> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Adam Litke <agl@us.ibm.com>
Applied.

--
Adam Litke - (agl at us.ibm.com)
IBM Linux Technology Center