[PATCH 1/1] mm/hugetlb: fix huge page reservation leak in private mapping error paths

2016-10-19 Thread Mike Kravetz
Error paths in hugetlb_cow() and hugetlb_no_page() may free a newly allocated huge page. If a reservation was associated with the huge page, alloc_huge_page() consumed the reservation while allocating. When the newly allocated page is freed in free_huge_page(), it will increment the global reserva

Re: [PATCH 1/1] mm/hugetlb: fix huge page reservation leak in private mapping error paths

2016-10-24 Thread Mike Kravetz
On 10/23/2016 04:36 AM, Aneesh Kumar K.V wrote: > Mike Kravetz writes: > >> Error paths in hugetlb_cow() and hugetlb_no_page() may free a newly >> allocated huge page. If a reservation was associated with the huge >> page, alloc_huge_page() consumed the reservation while allocating. >> When the

Re: [PATCH 1/1] mm/hugetlb: fix huge page reservation leak in private mapping error paths

2016-11-01 Thread Mike Kravetz
On 10/19/2016 08:11 PM, Mike Kravetz wrote: > Error paths in hugetlb_cow() and hugetlb_no_page() may free a newly > allocated huge page. If a reservation was associated with the huge > page, alloc_huge_page() consumed the reservation while allocating. > When the newly allocated page is freed in fr

Re: [PATCH 1/1] mm/hugetlb: fix huge page reservation leak in private mapping error paths

2016-11-01 Thread Hillf Danton
On Wednesday, November 02, 2016 12:37 AM Mike Kravetz wrote: > On 10/19/2016 08:11 PM, Mike Kravetz wrote: > > Error paths in hugetlb_cow() and hugetlb_no_page() may free a newly > > allocated huge page. If a reservation was associated with the huge > > page, alloc_huge_page() consumed the reserva

Re: [PATCH 1/1] mm/hugetlb: fix huge page reservation leak in private mapping error paths

2016-10-23 Thread Aneesh Kumar K.V
Mike Kravetz writes: > Error paths in hugetlb_cow() and hugetlb_no_page() may free a newly > allocated huge page. If a reservation was associated with the huge > page, alloc_huge_page() consumed the reservation while allocating. > When the newly allocated page is freed in free_huge_page(), it wi

Re: [PATCH 1/1] mm/hugetlb: fix huge page reservation leak in private mapping error paths

2016-10-23 Thread Aneesh Kumar K.V
Mike Kravetz writes: > Error paths in hugetlb_cow() and hugetlb_no_page() may free a newly > allocated huge page. If a reservation was associated with the huge > page, alloc_huge_page() consumed the reservation while allocating. > When the newly allocated page is freed in free_huge_page(), it wi