Re: [PATCH] mm: hugetlb: undo change to page mapcount in faulthandler

From: KAMEZAWA Hiroyuki
Date: Mon Dec 26 2011 - 02:02:00 EST


On Fri, 23 Dec 2011 21:00:41 +0800
Hillf Danton <dhillf@xxxxxxxxx> wrote:

> On Fri, Dec 23, 2011 at 12:36 AM, Michal Hocko <mhocko@xxxxxxx> wrote:
> >
> > The changelog is rather cryptic. What about something like:
> >
>
> It is included in the following version, thanks.
>
> ===CUT HERE===
> From: Hillf Danton <dhillf@xxxxxxxxx>
> Subject: [PATCH] mm: hugetlb: undo change to page mapcount in fault handler
>
> Page mapcount should be updated only if we are sure that the page ends
> up in the page table otherwise we would leak if we couldn't COW due to
> reservations or if idx is out of bounds.
>
> Signed-off-by: Hillf Danton <dhillf@xxxxxxxxx>
> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>
> Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> Reviewed-by: Michal Hocko <mhocko@xxxxxxx>

Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/