Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268094AbUI1XVl (ORCPT ); Tue, 28 Sep 2004 19:21:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268095AbUI1XVl (ORCPT ); Tue, 28 Sep 2004 19:21:41 -0400 Received: from e1.ny.us.ibm.com ([32.97.182.101]:6061 "EHLO e1.ny.us.ibm.com") by vger.kernel.org with ESMTP id S268094AbUI1XVk (ORCPT ); Tue, 28 Sep 2004 19:21:40 -0400 Subject: Re: get_user_pages() still broken in 2.6 From: Dave Hansen To: Christoph Hellwig Cc: Timur Tabi , linux-mm , Linux Kernel Mailing List , kernelnewbies@nl.linux.org In-Reply-To: <20040929000325.A6758@infradead.org> References: <4159E85A.6080806@ammasso.com> <20040929000325.A6758@infradead.org> Content-Type: text/plain Message-Id: <1096413678.16198.16.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Tue, 28 Sep 2004 16:21:18 -0700 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 642 Lines: 15 On Tue, 2004-09-28 at 16:03, Christoph Hellwig wrote: > get_user_pages locks the page in memory. It doesn't do anything about ptes. You probably want mlock(2) to keep the kernel from messing with the ptes at all. But, you should probably really be thinking about why you're accessing the page tables at all. I count *ONE* instance in drivers/ where page tables are accessed directly. -- Dave - 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/