From: Chunyu Hu <chuhu@redhat.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: mingo@kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] tracing: Fix kmemleak in set_trigger_filter
Date: Thu, 24 Aug 2017 00:24:50 -0400 (EDT) [thread overview]
Message-ID: <892710688.893052.1503548690889.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <20170823221541.7aff7912@gandalf.local.home>
----- Original Message -----
> From: "Steven Rostedt" <rostedt@goodmis.org>
> To: "Chunyu Hu" <chuhu@redhat.com>
> Cc: mingo@kernel.org, linux-kernel@vger.kernel.org
> Sent: Thursday, August 24, 2017 10:15:41 AM
> Subject: Re: [PATCH 2/2] tracing: Fix kmemleak in set_trigger_filter
>
> On Wed, 23 Aug 2017 18:58:03 -0400 (EDT)
> Chunyu Hu <chuhu@redhat.com> wrote:
>
> > ----- Original Message -----
> > > From: "Steven Rostedt" <rostedt@goodmis.org>
> > > To: "Chunyu Hu" <chuhu@redhat.com>
> > > Cc: mingo@kernel.org, linux-kernel@vger.kernel.org
> > > Sent: Wednesday, August 23, 2017 12:52:49 PM
> > > Subject: Re: [PATCH 2/2] tracing: Fix kmemleak in set_trigger_filter
> > >
> > > On Wed, 23 Aug 2017 10:41:55 -0400
> > > Steven Rostedt <rostedt@goodmis.org> wrote:
> > >
> > > > * On success, returns 0 and *@filterp points to the new filter. On
> > > > * failure, returns -errno and *@filterp may point to %NULL or to a new
> > > > * filter. In the latter case, the returned filter contains error
> > > > * information if @set_str is %true and the caller is responsible for
> > > > * freeing it.
> > > >
> > > > So filter contains an error string when it fails. It seems that we
> > > > should somehow propagate that up the chain to display. I'll look more
> > > > into this.
> > >
> > > The bug is in create_filter(), because "set_str" is set to false, and
> > > the filter should not be passed back allocated on error.
> >
> > Thanks for all the analysis. I think you are right. I'll try to have a test
> > on it
> > in case we miss something. But please don't block on my test.
> >
>
> My tests are almost done, but I wont send anything till tomorrow. I can
> wait a day to post. There's a few other changes I need to send to Linus
> as well.
Tested with your patch, I did not hit the leak issue and other kmemleak.
Thanks.
>
> -- Steve
>
--
Regards,
Chunyu Hu
next prev parent reply other threads:[~2017-08-24 4:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-14 10:18 [PATCH 1/2] tracing: Fix kmemleak in tracing_map_array_free Chunyu Hu
2017-08-14 10:18 ` [PATCH 2/2] tracing: Fix kmemleak in set_trigger_filter Chunyu Hu
2017-08-14 12:09 ` Chunyu Hu
2017-08-23 14:38 ` Steven Rostedt
2017-08-23 14:41 ` Steven Rostedt
2017-08-23 16:52 ` Steven Rostedt
2017-08-23 22:58 ` Chunyu Hu
2017-08-24 2:15 ` Steven Rostedt
2017-08-24 4:24 ` Chunyu Hu [this message]
2017-08-24 13:56 ` Steven Rostedt
2017-08-14 12:08 ` [PATCH 1/2] tracing: Fix kmemleak in tracing_map_array_free Chunyu Hu
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=892710688.893052.1503548690889.JavaMail.zimbra@redhat.com \
--to=chuhu@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=rostedt@goodmis.org \
/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