[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <658d32f2-a71b-4dc2-bff9-649fadf41889@kadam.mountain>
Date: Mon, 19 Jun 2023 12:57:04 +0300
From: Dan Carpenter <dan.carpenter@...aro.org>
To: Fei Shao <fshao@...omium.org>
Cc: Stephen Boyd <sboyd@...nel.org>,
Jerome Brunet <jbrunet@...libre.com>,
Michael Turquette <mturquette@...libre.com>,
linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] clk: Fix memory leak in devm_clk_notifier_register()
On Mon, Jun 19, 2023 at 12:24:41PM +0300, Dan Carpenter wrote:
> > It was actually detected by kmemleak on an unreleased Chromebook device.
> > I added the trace snippet in the message at first but removed that
> > before sending this. Maybe I shouldn't have.
> >
> > I can resend a v3 to add that back if that's preferable. What do you think?
The other reason to include stack traces is so that if someone else
runs into the same bug they can find your patch by googling their stack
trace.
Normal users aren't going to be running kmemleak. And people doing
testing work for companies are hopefully going to pull this fix in via
the stable tree so they'll get this patch automatically that way so
they won't see it either.
But if the stack trace is like a NULL dereference bug, then users
absolutely do notice that kind of thing. You should always include
those kind of stack traces.
regards,
dan carpenter
Powered by blists - more mailing lists