Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759436Ab0LNPzw (ORCPT ); Tue, 14 Dec 2010 10:55:52 -0500 Received: from smtp1.linux-foundation.org ([140.211.169.13]:51756 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757749Ab0LNPzv convert rfc822-to-8bit (ORCPT ); Tue, 14 Dec 2010 10:55:51 -0500 MIME-Version: 1.0 In-Reply-To: <20101214153135.5f4423e0@suzukikp> References: <20101214152259.67896960@suzukikp> <20101214153135.5f4423e0@suzukikp> From: Linus Torvalds Date: Tue, 14 Dec 2010 07:55:00 -0800 Message-ID: Subject: Re: [Patch 4/21] Make fill_psinfo generic To: "Suzuki K. Poulose" 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 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: 800 Lines: 20 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. 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/