Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 27 Sep 2002 13:29:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 27 Sep 2002 13:29:46 -0400 Received: from mx2.elte.hu ([157.181.151.9]:35244 "HELO mx2.elte.hu") by vger.kernel.org with SMTP id ; Fri, 27 Sep 2002 13:29:40 -0400 Date: Fri, 27 Sep 2002 19:44:08 +0200 (CEST) From: Ingo Molnar Reply-To: Ingo Molnar To: Linus Torvalds Cc: Andrew Morton , Rusty Russell , Subject: Re: [patch] 'virtual => physical page mapping cache', vcache-2.5.38-B8 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 584 Lines: 14 and i'm not quite sure how other users of get_user_pages() (direct-IO) handle these kinds of COW races. A COW can invalidate a physical page anytime, so the DMA might go to the fork()ed child process, creating very unexpected results. We are protected against kswapd via the elevated page count, but are not protected against COW. Ingo - 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/