Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964912AbWJJSNh (ORCPT ); Tue, 10 Oct 2006 14:13:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964976AbWJJSNh (ORCPT ); Tue, 10 Oct 2006 14:13:37 -0400 Received: from excu-mxob-1.symantec.com ([198.6.49.12]:23448 "EHLO excu-mxob-1.symantec.com") by vger.kernel.org with ESMTP id S964912AbWJJSNg (ORCPT ); Tue, 10 Oct 2006 14:13:36 -0400 Date: Tue, 10 Oct 2006 19:12:54 +0100 (BST) From: Hugh Dickins X-X-Sender: hugh@blonde.wat.veritas.com To: Greg KH cc: linux-kernel@vger.kernel.org, stable@kernel.org, torvalds@osdl.org, Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , akpm@osdl.org, alan@lxorguk.ukuu.org.uk, Nick Piggin Subject: Re: [patch 07/19] invalidate_complete_page() race fix In-Reply-To: <20061010171451.GH6339@kroah.com> Message-ID: References: <20061010165621.394703368@quad.kroah.org> <20061010171451.GH6339@kroah.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-OriginalArrivalTime: 10 Oct 2006 18:12:41.0939 (UTC) FILETIME=[AD5CBA30:01C6EC97] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 996 Lines: 24 On Tue, 10 Oct 2006, Greg KH wrote: > -stable review patch. If anyone has any objections, please let us know. > > ------------------ > From: Andrew Morton > > If a CPU faults this page into pagetables after invalidate_mapping_pages() > checked page_mapped(), invalidate_complete_page() will still proceed to remove > the page from pagecache. This leaves the page-faulting process with a > detached page. If it was MAP_SHARED then file data loss will ensue. > > Fix that up by checking the page's refcount after taking tree_lock. I may have lost the plot, but I think this patch has already proved to cause problems for NFS in 2.6.18: not good to put it into 2.6.17 stable while it's awaiting refinement for 2.6.18 stable. Hugh - 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/