Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758451Ab1COT2u (ORCPT ); Tue, 15 Mar 2011 15:28:50 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:33658 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758386Ab1COT2r (ORCPT ); Tue, 15 Mar 2011 15:28:47 -0400 Subject: Re: [PATCH v2 2.6.38-rc8-tip 7/20] 7: uprobes: store/restore original instruction. From: Peter Zijlstra To: balbir@linux.vnet.ibm.com Cc: Srikar Dronamraju , Stephen Wilson , Ingo Molnar , Steven Rostedt , Linux-mm , Arnaldo Carvalho de Melo , Linus Torvalds , Ananth N Mavinakayanahalli , Christoph Hellwig , Andi Kleen , Masami Hiramatsu , Oleg Nesterov , LKML , Jim Keniston , Roland McGrath , SystemTap , Andrew Morton , "Paul E. McKenney" In-Reply-To: <20110315185841.GH3410@balbir.in.ibm.com> References: <20110314133403.27435.7901.sendpatchset@localhost6.localdomain6> <20110314133522.27435.45121.sendpatchset@localhost6.localdomain6> <20110314180914.GA18855@fibrous.localdomain> <20110315092247.GW24254@linux.vnet.ibm.com> <1300211862.2203.302.camel@twins> <20110315185841.GH3410@balbir.in.ibm.com> Content-Type: text/plain; charset="UTF-8" Date: Tue, 15 Mar 2011 20:30:32 +0100 Message-ID: <1300217432.2250.0.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 857 Lines: 24 On Wed, 2011-03-16 at 00:28 +0530, Balbir Singh wrote: > > mm->owner should be under rcu_read_lock, unless the task is exiting > and mm_count is 1. mm->owner is updated under task_lock(). > > > Also, the assignments in kernel/fork.c and kernel/exit.c don't use > > rcu_assign_pointer() and therefore lack the needed write barrier. > > > > Those are paths when the only context using the mm->owner is single > > > Git blames Balbir for this. > > I accept the blame and am willing to fix anything incorrect found in > the code. :-), ok sounds right, just wasn't entirely obvious when having a quick look. -- 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/