Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755764AbXHNH4j (ORCPT ); Tue, 14 Aug 2007 03:56:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751616AbXHNH4Z (ORCPT ); Tue, 14 Aug 2007 03:56:25 -0400 Received: from ozlabs.org ([203.10.76.45]:46062 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751265AbXHNH4X (ORCPT ); Tue, 14 Aug 2007 03:56:23 -0400 Date: Tue, 14 Aug 2007 17:56:13 +1000 From: David Gibson To: Greg KH Cc: linux-kernel@vger.kernel.org, stable@kernel.org, linuxppc-dev list , "Theodore Ts'o" , Zwane Mwaikambo , Justin Forbes , Domenico Andreoli , Chris Wedgwood , Paul Mackerras , Randy Dunlap , Michael Krufky , Chuck Ebbert , Dave Jones , Chuck Wolber , akpm@linux-foundation.org, torvalds@linux-foundation.org, alan@lxorguk.ukuu.org.uk Subject: Re: [patch 07/12] powerpc: Fix size check for hugetlbfs Message-ID: <20070814075613.GH8791@localhost.localdomain> Mail-Followup-To: Greg KH , linux-kernel@vger.kernel.org, stable@kernel.org, linuxppc-dev list , Theodore Ts'o , Zwane Mwaikambo , Justin Forbes , Domenico Andreoli , Chris Wedgwood , Paul Mackerras , Randy Dunlap , Michael Krufky , Chuck Ebbert , Dave Jones , Chuck Wolber , akpm@linux-foundation.org, torvalds@linux-foundation.org, alan@lxorguk.ukuu.org.uk References: <20070814072244.882283903@mini.kroah.org> <20070814072918.GG15025@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070814072918.GG15025@kroah.com> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1309 Lines: 29 On Tue, Aug 14, 2007 at 12:29:18AM -0700, Greg KH wrote: > -stable review patch. If anyone has any objections, please let us know. > > ------------------ > From: Benjamin Herrenschmidt > > My "slices" address space management code that was added in 2.6.22 > implementation of get_unmapped_area() doesn't properly check that the > size is a multiple of the requested page size. This allows userland to > create VMAs that aren't a multiple of the huge page size with hugetlbfs > (since hugetlbfs entirely relies on get_unmapped_area() to do that > checking) which leads to a kernel BUG() when such areas are torn down. > > Signed-off-by: Benjamin Herrenschmidt > Signed-off-by: Paul Mackerras > Signed-off-by: Greg Kroah-Hartman Acked-by: David Gibson -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/