From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757190Ab3AIEYB (ORCPT ); Tue, 8 Jan 2013 23:24:01 -0500 Received: from mail-pa0-f43.google.com ([209.85.220.43]:35877 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757132Ab3AIEX7 (ORCPT ); Tue, 8 Jan 2013 23:23:59 -0500 Date: Tue, 8 Jan 2013 20:23:46 -0800 (PST) From: Hugh Dickins X-X-Sender: hugh@eggly.anvils To: Andrea Arcangeli cc: Linus Torvalds , "Kirill A. Shutemov" , Hillf Danton , Dave Jones , Linux Kernel , Andrew Morton , Mel Gorman , Linux-MM , Rik van Riel Subject: Re: oops in copy_page_rep() In-Reply-To: <20130108173747.GF9163@redhat.com> Message-ID: References: <20130105152208.GA3386@redhat.com> <20130108163141.GA27555@shutemov.name> <20130108173747.GF9163@redhat.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 8 Jan 2013, Andrea Arcangeli wrote: > > Looking at this, one thing that isn't clear is where the page_count is > checked in migrate_misplaced_transhuge_page. Ok that it's unable to > migrate anon transhuge COW shared pages so it doesn't need to mess > with rmap (the mapcount check makes it safe), but it shouldn't be > allowed to migrate memory that has gup direct-IO in flight (and that > can only be detected with a page_count vs mapcount check). Real > migrate does page_freeze_refs to be safe. Mel comments? Yes, I protested to Mel about that before the holidays, and he quickly provided a patch, now in akpm's tree; but checking it again today, I believe it's still not quite right yet - see other mail. Hugh