Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261902AbVC3RkP (ORCPT ); Wed, 30 Mar 2005 12:40:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262353AbVC3RkP (ORCPT ); Wed, 30 Mar 2005 12:40:15 -0500 Received: from caramon.arm.linux.org.uk ([212.18.232.186]:14857 "EHLO caramon.arm.linux.org.uk") by vger.kernel.org with ESMTP id S261902AbVC3RkL (ORCPT ); Wed, 30 Mar 2005 12:40:11 -0500 Date: Wed, 30 Mar 2005 18:39:56 +0100 From: Russell King To: Hugh Dickins Cc: Nick Piggin , akpm@osdl.org, davem@davemloft.net, tony.luck@intel.com, benh@kernel.crashing.org, ak@suse.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/6] freepgt: free_pgtables shakeup Message-ID: <20050330183956.C13781@flint.arm.linux.org.uk> Mail-Followup-To: Hugh Dickins , Nick Piggin , akpm@osdl.org, davem@davemloft.net, tony.luck@intel.com, benh@kernel.crashing.org, ak@suse.de, linux-kernel@vger.kernel.org References: <20050325212234.F12715@flint.arm.linux.org.uk> <4244C3B7.4020409@yahoo.com.au> <20050326113530.A12809@flint.arm.linux.org.uk> <20050326133720.B12809@flint.arm.linux.org.uk> <424568D2.7090701@yahoo.com.au> <20050326150321.C12809@flint.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from hugh@veritas.com on Wed, Mar 30, 2005 at 06:00:54PM +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 807 Lines: 20 On Wed, Mar 30, 2005 at 06:00:54PM +0100, Hugh Dickins wrote: > And, whether FIRST_USER_ADDRESS is 0x8000 or 2MB, > shouldn't your arch_get_unmapped_area be enforcing it? Why should it? arch_get_unmapped_area allocates address space dynamically when NULL is passed, and always starts from TASK_UNMAPPED_BASE. This will be greater than 32K. The protection against mapping things below 32K comes from the syscall wrappers on mmap() and mremap(). -- Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: 2.6 Serial core - 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/