[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTi=mce6tzg=vwf45XUQoADA=YbP2QJ2_tpg=QgQE@mail.gmail.com>
Date: Sat, 5 Mar 2011 12:52:34 -0800
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Oleg Nesterov <oleg@...hat.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>,
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 v4 3/4] exec: unify do_execve/compat_do_execve code
Ok, everything looks fine to me.
Except looking at this, I don't think this part:
On Sat, Mar 5, 2011 at 12:31 PM, Oleg Nesterov <oleg@...hat.com> wrote:
>
> struct user_arg_ptr {
> - const char __user *const __user *native;
> +#ifdef CONFIG_COMPAT
> + bool is_compat;
> +#endif
> + union {
> + const char __user *const __user *native;
> + compat_uptr_t __user *compat;
> + } ptr;
> };
will necessarily even compile on an architecture that doesn't have any
'compat' support.
Do we even define 'compat_uptr_t' for that case? I don't think so.
So I suspect you need two of those annoying #ifdef's. Or we need to
have some way to guarantee that 'compat_uptr_t' exists.
Linus
--
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