From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1765982AbYDOVgH (ORCPT ); Tue, 15 Apr 2008 17:36:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755375AbYDOVfy (ORCPT ); Tue, 15 Apr 2008 17:35:54 -0400 Received: from waste.org ([66.93.16.53]:50280 "EHLO waste.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753672AbYDOVfx (ORCPT ); Tue, 15 Apr 2008 17:35:53 -0400 Subject: Re: [PATCH v2] mm: Fix possible off-by-one in walk_pte_range() From: Matt Mackall To: Johannes Weiner Cc: Mikael Pettersson , LKML , Roel Kluin <12o3l@tiscali.nl>, Andreas Schwab , Andrew Morton In-Reply-To: <8763ujhz4a.fsf_-_@saeurebad.de> References: <12082680403770-git-send-email-hannes@saeurebad.de> <18436.52094.242415.163660@harpo.it.uu.se> <8763ujhz4a.fsf_-_@saeurebad.de> Content-Type: text/plain Date: Tue, 15 Apr 2008 14:34:56 -0700 Message-Id: <1208295296.616.1.camel@calx> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2008-04-15 at 18:16 +0200, Johannes Weiner wrote: > From: Johannes Weiner > 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 Acked-by: Matt Mackall -- Mathematics is the supreme nostalgia of our time.