From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265482AbUE0V45 (ORCPT ); Thu, 27 May 2004 17:56:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265481AbUE0V44 (ORCPT ); Thu, 27 May 2004 17:56:56 -0400 Received: from palrel11.hp.com ([156.153.255.246]:38102 "EHLO palrel11.hp.com") by vger.kernel.org with ESMTP id S265478AbUE0V4z (ORCPT ); Thu, 27 May 2004 17:56:55 -0400 From: David Mosberger MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16566.25617.363386.115466@napali.hpl.hp.com> Date: Thu, 27 May 2004 14:56:33 -0700 To: Andrea Arcangeli Cc: davidm@hpl.hp.com, Linus Torvalds , Benjamin Herrenschmidt , Andrew Morton , Linux Kernel list , Ingo Molnar , Ben LaHaise , linux-mm@kvack.org, Architectures Group Subject: Re: [PATCH] ppc64: Fix possible race with set_pte on a present PTE In-Reply-To: <20040525045322.GX29378@dualathlon.random> References: <1085369393.15315.28.camel@gaston> <1085371988.15281.38.camel@gaston> <1085373839.14969.42.camel@gaston> <20040525034326.GT29378@dualathlon.random> <20040525042054.GU29378@dualathlon.random> <16562.52948.981913.814783@napali.hpl.hp.com> <20040525045322.GX29378@dualathlon.random> X-Mailer: VM 7.18 under Emacs 21.3.1 Reply-To: davidm@hpl.hp.com X-URL: http://www.hpl.hp.com/personal/David_Mosberger/ Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org >>>>> On Tue, 25 May 2004 06:53:22 +0200, Andrea Arcangeli said: >> If the "accessed" or "dirty" bits are zero, accessing/writing the >> page will cause a fault which will be handled in a low-level >> fault handler. The Linux version of these handlers simply turn >> on the respective bit. See daccess_bit(), iaccess_bit(), and dirty_bit() >> in arch/ia64/kernel/ivt.S. Andrea> so you mean, this is being set in the arch section before Andrea> ever reaching handle_mm_fault? Correct. The low-level fault handlers set the ACCESSED/DIRTY bits with an atomic compare-and-exchange (on SMP). They don't (normally) bubble up all the way to the Linux page-fault handler. --david