Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755802Ab1FCTGD (ORCPT ); Fri, 3 Jun 2011 15:06:03 -0400 Received: from ch1ehsobe005.messaging.microsoft.com ([216.32.181.185]:44671 "EHLO CH1EHSOBE017.bigfish.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755463Ab1FCTGA (ORCPT ); Fri, 3 Jun 2011 15:06:00 -0400 X-SpamScore: -17 X-BigFish: VS-17(zz9371M1102K1432N98dKzz1202hzz8275bhz2dh2a8h668h839h61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: CIP:70.37.183.190;KIP:(null);UIP:(null);IPVD:NLI;H:mail.freescale.net;RD:none;EFVD:NLI Date: Fri, 3 Jun 2011 13:53:03 -0500 From: Scott Wood To: Alexey Dobriyan CC: Timur Tabi , , , Subject: Re: [PATCH] lib: introduce strdup_from_user Message-ID: <20110603135303.0800e4a7@schlenkerla.am.freescale.net> In-Reply-To: References: <1307119552-15573-1-git-send-email-timur@freescale.com> <4DE92675.6080908@freescale.com> <4DE9294B.3040501@freescale.com> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.24.4; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-OriginatorOrg: freescale.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 688 Lines: 20 On Fri, 3 Jun 2011 21:39:28 +0300 Alexey Dobriyan wrote: > On Fri, Jun 3, 2011 at 9:34 PM, Timur Tabi wrote: > > Would it be better if I did this: > > The point is data should cross kernelspace/userspace boundary only once. > Why does it matter, as long as it doesn't hurt the kernel if userspace plays games (i.e. take care of the NUL termination), and it's not a performance problem? -Scott -- 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/