From: Oleg Nesterov <oleg@tv-sign.ru>
To: Ingo Molnar <mingo@elte.hu>
Cc: Steve VanDeBogart <vandebo-lkml@NerdBox.Net>,
linux-kernel@vger.kernel.org, Roland McGrath <roland@redhat.com>
Subject: Re: [PATCH] exit signals: use of uninitialized field notify_count
Date: Wed, 27 Aug 2008 20:11:41 +0400 [thread overview]
Message-ID: <20080827161141.GA97@tv-sign.ru> (raw)
In-Reply-To: <20080827080136.GA4453@elte.hu>
On 08/27, Ingo Molnar wrote:
>
> * Steve VanDeBogart <vandebo-lkml@NerdBox.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@nerdbox.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.
next prev parent reply other threads:[~2008-08-27 16:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-26 22:14 Steve VanDeBogart
2008-08-27 8:01 ` Ingo Molnar
2008-08-27 16:11 ` Oleg Nesterov [this message]
2008-08-28 0:58 ` Steve VanDeBogart
2008-08-28 12:58 ` Oleg Nesterov
2008-08-28 0:27 ` Steve VanDeBogart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080827161141.GA97@tv-sign.ru \
--to=oleg@tv-sign.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=roland@redhat.com \
--cc=vandebo-lkml@NerdBox.Net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®