Re: [PATCH] reduce [compat]_do_execve stack usage

From: Denis Vlasenko
Date: Thu Sep 16 2004 - 15:03:14 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/