[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20080308201909.GA83@tv-sign.ru>
Date: Sat, 8 Mar 2008 23:19:09 +0300
From: Oleg Nesterov <oleg@...sign.ru>
To: Roland McGrath <roland@...hat.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] waitid si_code regression
On 03/08, Roland McGrath wrote:
>
> In commit ee7c82da830ea860b1f9274f1f0cdf99f206e7c2, the magic (short)
> cast when storing si_code was lost in wait_task_stopped. This leaks
> the in-kernel CLD_* values that do not match what userland expects.
>
> diff --git a/kernel/exit.c b/kernel/exit.c
> index cd20bf0..53872bf 100644
> --- a/kernel/exit.c
> +++ b/kernel/exit.c
> @@ -1378,7 +1378,7 @@ unlock_sig:
> if (!retval && infop)
> retval = put_user(0, &infop->si_errno);
> if (!retval && infop)
> - retval = put_user(why, &infop->si_code);
> + retval = put_user((short)why, &infop->si_code);
Ugh, thanks.
Oleg.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists