Re: [PATCH v2] sparc64: Fix gup_huge_pmd

From: David Miller
Date: Sun Jun 25 2017 - 15:24:57 EST


From: Nitin Gupta <nitin.m.gupta@xxxxxxxxxx>
Date: Thu, 22 Jun 2017 17:15:08 -0700

> The function assumes that each PMD points to head of a
> huge page. This is not correct as a PMD can point to
> start of any 8M region with a, say 256M, hugepage. The
> fix ensures that it points to the correct head of any PMD
> huge page.
>
> Cc: Julian Calaby <julian.calaby@xxxxxxxxx>
> Signed-off-by: Nitin Gupta <nitin.m.gupta@xxxxxxxxxx>
> ---
> Changes since v1
> - Clarify use of 'head' variable (Julian Calaby)

Applied and queued up for -stable, thanks.