[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080827161141.GA97@tv-sign.ru>
Date: Wed, 27 Aug 2008 20:11:41 +0400
From: Oleg Nesterov <oleg@...sign.ru>
To: Ingo Molnar <mingo@...e.hu>
Cc: Steve VanDeBogart <vandebo-lkml@...dBox.Net>,
linux-kernel@...r.kernel.org, Roland McGrath <roland@...hat.com>
Subject: Re: [PATCH] exit signals: use of uninitialized field notify_count
On 08/27, Ingo Molnar wrote:
>
> * Steve VanDeBogart <vandebo-lkml@...dBox.Net> wrote:
>
> > task->signal->notify_count is only initialized if
> > task->signal->group_exit_task is not NULL. Reorder a conditional so
> > that uninitialised memory is not used. Found by Valgrind.
> >
> > Signed-off-by: Steve VanDeBogart <vandebo-lkml@...dbox.net>
>
> Applied the commit below to tip/core/urgent, thanks. Roland/Oleg, do you
> concur with the fix?
Inho, very nice cleanup.
Minor comment. As Roland pointed out, it makes sense to initialize
the whole signal_struct explicitely, perhaps copy_signal() should
just use zalloc. In that case we don't need to check ->group_exit_task
at all, the same for __exit_signal().
Thanks Steve! and what do you think about the above?
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