lkml.org 
[lkml]   [2004]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] reduce [compat]_do_execve stack usage
Date
On Thursday 16 September 2004 21:30, Alex Williamson wrote:
> Looks like a couple struct to pointer conversions were missed.
> Current bk won't build for me w/o this:
>
> ===== fs/compat.c 1.41 vs edited =====
> --- 1.41/fs/compat.c 2004-09-14 17:24:46 -06:00
> +++ edited/fs/compat.c 2004-09-16 12:19:26 -06:00
> @@ -1399,11 +1399,11 @@
> if (retval < 0)
> goto out_mm;
>
> - bprm.argc = compat_count(argv, bprm->p / sizeof(compat_uptr_t));
> + bprm->argc = compat_count(argv, bprm->p / sizeof(compat_uptr_t));
> if ((retval = bprm->argc) < 0)
> goto out_mm;
>
> - bprm.envc = compat_count(envp, bprm->p / sizeof(compat_uptr_t));
> + bprm->envc = compat_count(envp, bprm->p / sizeof(compat_uptr_t));
> if ((retval = bprm->envc) < 0)
> goto out_mm;

Seems I missed that. Probably with my .config
this code does not get included in the build...

Thanks.
--
vda

-
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/

\
 
 \ /
  Last update: 2005-03-22 14:06    [W:0.062 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site