From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: [PATCH 14(16] pramfs: memory protection Date: Tue, 12 Oct 2010 09:45:22 +0200 Message-ID: <20101012074522.GA20436@basil.fritz.box> References: <4CB1EBA2.8090409@gmail.com> <87aamm3si1.fsf@basil.nowhere.org> <4CB34A1A.3030003@gmail.com> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <4CB34A1A.3030003@gmail.com> Sender: owner-linux-mm@kvack.org List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Marco Stornelli Cc: Andi Kleen , Linux Kernel , Linux Embedded , Linux FS Devel , Tim Bird , linux-mm@kvack.org On Mon, Oct 11, 2010 at 07:32:10PM +0200, Marco Stornelli wrote: > Il 10/10/2010 18:46, Andi Kleen ha scritto: > > This won't work at all on x86 because you don't handle large > > pages. > > > > And it doesn't work on x86-64 because the first 2GB are double > > mapped (direct and kernel text mapping) > > > > Thirdly I expect it won't either on architectures that map > > the direct mapping with special registers (like IA64 or MIPS) > > Andi, what do you think to use the already implemented follow_pte > instead? Has all the same problems. Really you need an per architecture function. Perhaps some architectures could use a common helper, but certainly not all. x86 already has some infrastructure for this, but it currently has serious problems too (like not merging mappings on unmap) and is generally overdesigned ugly code. -Andi -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org