Re: [2.6.1] oops in load_elf_binary()

From: Andrew Morton
Date: Sun Jan 18 2004 - 02:29:28 EST


serge <33554432@xxxxxxxxxx> wrote:
>
> The output is:
>
> ------------------------------------------------------------------------------
> Unable to handle kernel paging request at virtual address ffffffe4

We're doing fput(NULL) on a error path, after set_brk() failed.

--- 25/fs/binfmt_elf.c~elf-oops-fix 2004-01-17 23:07:21.000000000 -0800
+++ 25-akpm/fs/binfmt_elf.c 2004-01-17 23:07:29.000000000 -0800
@@ -863,7 +863,8 @@ out:
/* error cleanup */
out_free_dentry:
allow_write_access(interpreter);
- fput(interpreter);
+ if (interpreter)
+ fput(interpreter);
out_free_interp:
if (elf_interpreter)
kfree(elf_interpreter);

_

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