Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757552Ab0LOCWs (ORCPT ); Tue, 14 Dec 2010 21:22:48 -0500 Received: from e37.co.us.ibm.com ([32.97.110.158]:40889 "EHLO e37.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752016Ab0LOCWr convert rfc822-to-8bit (ORCPT ); Tue, 14 Dec 2010 21:22:47 -0500 Date: Wed, 15 Dec 2010 07:52:35 +0530 From: "Suzuki K. Poulose" To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Jeremy Fitzhardinge , Christoph Hellwig , Masami Hiramatsu , Ananth N Mavinakayanahalli , Daisuke HATAYAMA , Andi Kleen , Roland McGrath , Amerigo Wang , KAMEZAWA Hiroyuki , KOSAKI Motohiro , Oleg Nesterov , Andrew Morton Subject: Re: [Patch 4/21] Make fill_psinfo generic Message-ID: <20101215075235.5e3f36b1@suzukikp> In-Reply-To: References: <20101214152259.67896960@suzukikp> <20101214153135.5f4423e0@suzukikp> Organization: IBM X-Mailer: Claws Mail 3.7.6 (GTK+ 2.22.0; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 928 Lines: 29 On Tue, 14 Dec 2010 07:55:00 -0800 Linus Torvalds wrote: > On Tue, Dec 14, 2010 at 2:01 AM, Suzuki K. Poulose wrote: > > + ? ? ? /* > > + ? ? ? ?* If we are dumping core for "another task" > > + ? ? ? ?* we can't use copy_from_user(). > > + ? ? ? ?*/ > > + ? ? ? if (p->group_leader == current->group_leader) { > > This is totally bogus. "group_leader" has absolutely nothing to do > with whether the process shares the address space. It's about signal > sharing etc. > > The way to check whether they share the same address space is to check > whether "mm" is the same. > OK. I will make use of the mm here. Thanks Suzuki -- 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/