[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110603135303.0800e4a7@schlenkerla.am.freescale.net>
Date: Fri, 3 Jun 2011 13:53:03 -0500
From: Scott Wood <scottwood@...escale.com>
To: Alexey Dobriyan <adobriyan@...il.com>
CC: Timur Tabi <timur@...escale.com>, <alan@...rguk.ukuu.org.uk>,
<linux-kernel@...r.kernel.org>, <akpm@...ux-foundation.org>
Subject: Re: [PATCH] lib: introduce strdup_from_user
On Fri, 3 Jun 2011 21:39:28 +0300
Alexey Dobriyan <adobriyan@...il.com> wrote:
> On Fri, Jun 3, 2011 at 9:34 PM, Timur Tabi <timur@...escale.com> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists