Re: [Patch 7/9] fs/exec.c: fix wrong return value of prepare_binprm()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: WANG Cong
Date: Sunday, May 11, 2008 - 9:15 pm

On Mon, May 12, 2008 at 05:01:22AM +0100, Al Viro wrote:

Hmm, it should. Thanks for your correction.



IMO, -EIO is fine, because -EINVAL means "Invalid argument", but
there's nothing wrong with arguments here, just some bad things occurred
on reading the binary.

And even if it is really "binary is corrupted", then -ENOEXEC is
better than -EINVAL, isn't it?

Anyway, kernel_read() may return postive when not success.

Thanks.

-- 
Hi, I'm a .signature virus, please copy/paste me to help me spread
all over the world.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[Patch 1/9] fs/exec.c: export free_arg_pages, WANG Cong, (Thu May 8, 6:52 am)
[Patch 5/9] fs/binfmt_em86.c: fix resource leaks, WANG Cong, (Thu May 8, 6:52 am)
[Patch 6/9] fs/binfmt_misc.c: fix resource leaks, WANG Cong, (Thu May 8, 6:52 am)
[Patch 9/9] fs/exec.c: fix a wrong goto path, WANG Cong, (Thu May 8, 6:52 am)
Re: [Patch 1/9] fs/exec.c: export free_arg_pages, Al Viro, (Sat May 10, 12:12 pm)
Re: [Patch 9/9] fs/exec.c: fix a wrong goto path, Al Viro, (Sat May 10, 12:37 pm)
Re: [Patch 9/9] fs/exec.c: fix a wrong goto path, WANG Cong, (Sun May 11, 8:51 pm)
Re: [Patch 9/9] fs/exec.c: fix a wrong goto path, Al Viro, (Sun May 11, 8:58 pm)
Re: [Patch 1/9] fs/exec.c: export free_arg_pages, WANG Cong, (Sun May 11, 8:59 pm)
Re: [Patch 7/9] fs/exec.c: fix wrong return value of prepa ..., WANG Cong, (Sun May 11, 9:15 pm)