Re: [PATCH v2] mm: Fix possible off-by-one in walk_pte_range()

From: Matt Mackall
Date: Tue Apr 15 2008 - 17:36:08 EST


On Tue, 2008-04-15 at 18:16 +0200, Johannes Weiner wrote:
> From: Johannes Weiner <hannes@xxxxxxxxxxxx>
> Subject: [PATCH] mm: Fix possible off-by-one in walk_pte_range()
>
> After the loop in walk_pte_range() pte might point to the first address
> after the pmd it walks. The pte_unmap() is then applied to something
> bad.
>
> Spotted by Roel Kluin and Andreas Schwab.
>
> Signed-off-by: Johannes Weiner <hannes@xxxxxxxxxxxx>

Acked-by: Matt Mackall <mpm@xxxxxxxxxxx>

--
Mathematics is the supreme nostalgia of our time.

--
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/