Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752635Ab0DLPtA (ORCPT ); Mon, 12 Apr 2010 11:49:00 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:59914 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752330Ab0DLPs7 (ORCPT ); Mon, 12 Apr 2010 11:48:59 -0400 Date: Mon, 12 Apr 2010 08:44:08 -0700 (PDT) From: Linus Torvalds To: Rik van Riel cc: Borislav Petkov , Johannes Weiner , KOSAKI Motohiro , Andrew Morton , Minchan Kim , Linux Kernel Mailing List , Lee Schermerhorn , Nick Piggin , Andrea Arcangeli , Hugh Dickins , sgunderson@bigfoot.com Subject: Re: [PATCH -v2] rmap: make anon_vma_prepare link in all the anon_vmas of a mergeable VMA In-Reply-To: <4BC227B6.7050802@redhat.com> Message-ID: References: <20100410185145.GB28952@a1.tnic> <20100410185839.GA32035@a1.tnic> <20100410203628.GB32035@a1.tnic> <20100410212555.GA1797@a1.tnic> <20100410215115.GA2599@a1.tnic> <20100411130801.GA7189@a1.tnic> <4BC227B6.7050802@redhat.com> User-Agent: Alpine 2.00 (LFD 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 Content-Length: 841 Lines: 24 On Sun, 11 Apr 2010, Rik van Riel wrote: > > Looking around the code some more, zap_pte_range() > calls page_remove_rmap(), which leaves the > page->mapping in place and has this comment: See my earlier email about this exact issue. It's well-known that there are stale page->mapping pointers. The "page_mapped()" check _should_ have meant that in that case we never follow them, though. > I wonder if we can clear page->mapping here, if > list_is_singular(anon_vma->head). That way we > will not leave stale pointers behind. What does that help? What if list _isn't_ singular? Linus -- 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/