Hi,
The current do_execve() doesn't have the bug.
You should let CentOS team know the bug instead.
> Hello.
>
> Kernel 2.6.9 has a bug that forgets to undo open_exec() in do_execve().
> This bug was fixed in 2.6.10.
>
> I noticed this bug remains in kernel-2.6.9-34.EL.src.rpm for Cent OS.
> Distributors who use 2.6.9-based kernels, please check this.
>
> ---------- Start of patch ----------
> --- before/exec.c 2006-04-10 11:34:58.000000000 +0900
> +++ after/exec.c 2006-04-10 13:04:51.000000000 +0900
> @@ -1168,8 +1168,11 @@ int do_execve(char * filename,
>
> retval = -ENOMEM;
> bprm = kmalloc(sizeof(*bprm), GFP_KERNEL);
> - if (!bprm)
> + if (!bprm) {
> + allow_write_access(file);
> + fput(file);
> goto out_ret;
> + }
> memset(bprm, 0, sizeof(*bprm));
>
> bprm->p = PAGE_SIZE*MAX_ARG_PAGES-sizeof(void *);
> ---------- End of patch ----------
>
> Regards.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]