lkml.org 
[lkml]   [2008]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] mm: Fix possible off-by-one in walk_pte_range()
Johannes Weiner writes:
> From: Johannes Weiner <hannes@saeurebad.de>
> 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@saeurebad.de>
> CC: Roel Kluin <12o3l@tiscali.nl>
> CC: Andreas Schwab <schwab@suse.de>
> CC: Matt Mackall <mpm@selenic.com>
> CC: Andrew Morton <akpm@linux-foundation.org>

Thanks, v2 looks much nicer.

Acked-by: Mikael Pettersson <mikpe@it.uu.se>


\
 
 \ /
  Last update: 2008-04-16 09:53    [W:0.068 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site