[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-trivial] [PATCH] linux-user: fail execve() if env/args too big

From: Stefan Hajnoczi
Subject: Re: [Qemu-trivial] [PATCH] linux-user: fail execve() if env/args too big
Date: Thu, 9 Feb 2012 08:30:13 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Jan 31, 2012 at 12:43:16PM +0100, Ulrich Hecht wrote:
> If the host's page size is equal to or smaller than the target's, native
> execve() will fail appropriately with E2BIG if called with too big an
> environment for the target to handle. It may falsely succeed, however, if
> the host's page size is bigger, and feed the executed target process an
> environment that is too big for it to handle, at which point QEMU barfs and
> exits, confusing procmail's autoconf script and causing the build to fail.
> This patch makes sure that execve() will return E2BIG if the environment is
> too large for the target.
> Signed-off-by: Ulrich Hecht <address@hidden>
> ---
>  linux-user/syscall.c |    9 +++++++++
>  1 files changed, 9 insertions(+), 0 deletions(-)

Thanks, applied to the trivial patches tree:


reply via email to

[Prev in Thread] Current Thread [Next in Thread]