Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759451Ab0LNQBV (ORCPT ); Tue, 14 Dec 2010 11:01:21 -0500 Received: from mx1.redhat.com ([209.132.183.28]:15949 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757241Ab0LNQBU (ORCPT ); Tue, 14 Dec 2010 11:01:20 -0500 Date: Tue, 14 Dec 2010 16:53:47 +0100 From: Oleg Nesterov 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 , Linus Torvalds , KAMEZAWA Hiroyuki , KOSAKI Motohiro , Andrew Morton Subject: Re: [Patch 4/21] Make fill_psinfo generic Message-ID: <20101214155347.GB11400@redhat.com> References: <20101214152259.67896960@suzukikp> <20101214153135.5f4423e0@suzukikp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101214153135.5f4423e0@suzukikp> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 582 Lines: 19 On 12/14, Suzuki K. Poulose wrote: > > + if (p->group_leader == current->group_leader) { > + if (copy_from_user(&psinfo->pr_psargs, > + (const char __user *)mm->arg_start, len)) > + return -EFAULT; > + } else { > + int bytes = access_process_vm(p, mm->arg_start, > + &psinfo->pr_psargs, len, 0); The same. Oleg. -- 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/