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

From: Alex Williamson
Date: Thu Sep 16 2004 - 13:50:29 EST



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;



--
Alex Williamson HP Linux & Open Source Lab

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