From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by ozlabs.org (Postfix) with ESMTP id 7B1E4B6F6F for ; Wed, 27 Jul 2011 20:10:42 +1000 (EST) From: David Howells In-Reply-To: <1311757190.24752.406.camel@twins> References: <1311757190.24752.406.camel@twins> <1310717238-13857-1-git-send-email-haishan.bai@gmail.com> <1310717238-13857-2-git-send-email-haishan.bai@gmail.com> <1310725418.2586.309.camel@twins> <4E21A526.8010904@gmail.com> <1310860194.25044.17.camel@pasglop> <4b337921-d430-4b63-bc36-ad31753cf800@email.android.com> <1310912990.25044.203.camel@pasglop> <1310944453.25044.262.camel@pasglop> <1310961691.25044.274.camel@pasglop> <4E23D728.7090406@gmail.com> <1310972462.25044.292.camel@pasglop> <4E23E02C.8090401@gmail.com> <1310974591.25044.298.camel@pasglop> <4E24FA51.70602@gmail.com> <1311049762.25044.392.camel@pasglop> <1311753513.25044.663.camel@pasglop> To: Peter Zijlstra Subject: Re: [RFC/PATCH] mm/futex: Fix futex writes on archs with SW tracking of dirty & young Date: Wed, 27 Jul 2011 11:09:39 +0100 Message-ID: <20368.1311761379@redhat.com> Sender: dhowells@redhat.com Cc: tony.luck@intel.com, Mike Frysinger , Shan Hai , linux-kernel@vger.kernel.org, cmetcalf@tilera.com, dhowells@redhat.com, paulus@samba.org, uclinux-dist-devel@blackfin.uclinux.org, tglx@linutronix.de, walken@google.com, linuxppc-dev@lists.ozlabs.org, akpm@linux-foundation.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Peter Zijlstra wrote: > > What should nommu do anyways ? it's not like there's much it can do > > right ? It should never even hit the fault path to start with ... > > Something like the below makes a nommu arm config build.. David, is this > indeed the correct thing to do for nommu? > > --- > Index: linux-2.6/mm/nommu.c > =================================================================== > --- linux-2.6.orig/mm/nommu.c > +++ linux-2.6/mm/nommu.c > @@ -190,6 +190,12 @@ int get_user_pages(struct task_struct *t > } > EXPORT_SYMBOL(get_user_pages); > > +int fixup_user_fault(struct task_struct *tsk, struct mm_struct *mm, > + unsigned long address, unsigned int fault_flags) > +{ > + BUG(); /* nommu should never call this */ > +} > + > /** > * follow_pfn - look up PFN at a user virtual address > * @vma: memory mapping Or perhaps send SEGV? Can 'address' be bad at this point? Can you inline this for the NOMMU case please? David