Re: [PATCH] fix sys_prctl() returned uninitialized value
From: Andrew Morton
Date: Thu May 22 2008 - 01:17:35 EST
On Wed, 21 May 2008 22:01:17 -0700 "Andrew G. Morgan" <morgan@xxxxxxxxxx> wrote:
> this is the default expected by the subsequent switch ().
>
oh gawd.
>
> diff --git a/kernel/sys.c b/kernel/sys.c
> index 895d2d4..cb25a64 100644
> --- a/kernel/sys.c
> +++ b/kernel/sys.c
> @@ -1657,6 +1657,8 @@ asmlinkage long sys_prctl(int option, unsigned long arg2, unsigned long arg3,
> if (security_task_prctl(option, arg2, arg3, arg4, arg5, &error))
> return error;
All along I was believing that it was _this_ return which was causing
the problem.
> + error = 0;
> +
> switch (option) {
> case PR_SET_PDEATHSIG:
> if (!valid_signal(arg2)) {
But now I see it.
This was a hard way to write a changelog.
--
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/