[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20110303114952.B94B.A69D9226@jp.fujitsu.com>
Date: Thu, 3 Mar 2011 12:01:18 +0900 (JST)
From: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
To: Oleg Nesterov <oleg@...hat.com>
Cc: kosaki.motohiro@...fujitsu.com,
Linus Torvalds <torvalds@...ux-foundation.org>,
Andrew Morton <akpm@...ux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>,
linux-mm <linux-mm@...ck.org>, pageexec@...email.hu,
Solar Designer <solar@...nwall.com>,
Eugene Teo <eteo@...hat.com>,
Brad Spengler <spender@...ecurity.net>,
Roland McGrath <roland@...hat.com>,
Milton Miller <miltonm@....com>
Subject: Re: [PATCH v3 1/4] exec: introduce get_arg_ptr() helper
Hi
Sorry for the long delay. now I'm getting stuck sucky paper work. ;-)
In short, I don't find any issue in this patch. So, I'll test it at
this weekend if linus haven't merged it yet.
A few small and cosmetic comments are below. but anyway I don't want
keep this up in the air.
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
> Introduce get_arg_ptr() helper, convert count() and copy_strings()
> to use it.
>
> No functional changes, preparation. This helper is trivial, it just
> reads the pointer from argv/envp user-space array.
>
> Signed-off-by: Oleg Nesterov <oleg@...hat.com>
> ---
>
> fs/exec.c | 36 +++++++++++++++++++++++++-----------
> 1 file changed, 25 insertions(+), 11 deletions(-)
>
> --- 38/fs/exec.c~1_get_arg_ptr 2011-03-02 15:15:27.000000000 +0100
> +++ 38/fs/exec.c 2011-03-02 15:16:44.000000000 +0100
> @@ -395,6 +395,17 @@ err:
> return err;
> }
>
> +static const char __user *
> +get_arg_ptr(const char __user * const __user *argv, int argc)
> +{
[argc, argv] is natural order to me than [argv, argc].
and "get_" prefix are usually used for reference count incrementing
function in linux. so, i _personally_ prefer to call "user_arg_ptr".
--
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