From: Catalin Marinas <catalin.marinas@arm.com>
To: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Cc: linux-kernel@vger.kernel.org, ext-phil.2.carmody@nokia.com,
linux-omap@vger.kernel.org
Subject: Re: [PATCH v2 0/3] kmemleak: Fix false positive with special scan
Date: Wed, 02 Jun 2010 11:01:24 +0100 [thread overview]
Message-ID: <1275472884.13743.29.camel@e102109-lin.cambridge.arm.com> (raw)
In-Reply-To: <1275387911-13030-1-git-send-email-Hiroshi.DOYU@nokia.com>
Hi,
Sorry for the delay, I eventually got the time to look at your patches.
On Tue, 2010-06-01 at 11:25 +0100, Hiroshi DOYU wrote:
> There is a false positive case that a pointer is calculated by other
> methods than the usual container_of macro. "kmemleak_ignore" can cover
> such a false positive, but it would loose the advantage of memory leak
> detection. This patch allows kmemleak to work with such false
> positives by introducing a new special memory block with a specified
> calculation formula. A client module can register its area with a
> conversion function, with which function kmemleak scan could calculate
> a correct pointer.
While something needs to be done to cover these situations, I'm not so
convinced about the method as it complicates the code requiring such
conversion by having to insert two kmemleak hooks and a callback
function.
Can we not add a new prio tree (or just use the existing one) for
pointer aliases? The advantage is that you only have a single function
to call, something like kmemleak_add_alias() and you do it at the point
the value was converted.
Thanks.
--
Catalin
next prev parent reply other threads:[~2010-06-02 10:01 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1273821401-26578-2-git-send-email-Hiroshi.DOYU@nokia.com>
2010-06-01 10:25 ` [PATCH v2 0/3] kmemleak: Fix false positive with special scan Hiroshi DOYU
2010-06-02 10:01 ` Catalin Marinas [this message]
2010-06-02 11:34 ` Hiroshi DOYU
2010-06-02 12:28 ` Hiroshi DOYU
2010-06-02 14:12 ` Catalin Marinas
2010-06-03 9:54 ` Hiroshi DOYU
2010-06-18 6:04 ` [RFC][PATCH 0/1] kmemleak: Fix false positive with alias Hiroshi DOYU
2010-06-22 15:36 ` Phil Carmody
2010-06-28 14:46 ` Catalin Marinas
2010-06-29 4:44 ` Hiroshi DOYU
2010-08-10 15:49 ` Hiroshi DOYU
2010-08-27 6:12 ` Hiroshi DOYU
2010-08-30 20:30 ` Paul E. McKenney
2010-09-17 13:14 ` Catalin Marinas
2010-09-17 16:18 ` Catalin Marinas
2010-09-17 17:06 ` Hiroshi DOYU
2010-09-17 17:28 ` Phil Carmody
2010-06-18 6:04 ` [PATCH 1/1] " Hiroshi DOYU
2010-06-01 10:25 ` [PATCH v2 1/3] kmemleak: Fix false positives with special scan Hiroshi DOYU
2010-06-01 10:25 ` [PATCH v2 2/3] kmemleak: Add special scan test case Hiroshi DOYU
2010-06-01 10:25 ` [PATCH v2 3/3] omap iommu: kmemleak: Fix false positive with special scan Hiroshi DOYU
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=1275472884.13743.29.camel@e102109-lin.cambridge.arm.com \
--to=catalin.marinas@arm.com \
--cc=Hiroshi.DOYU@nokia.com \
--cc=ext-phil.2.carmody@nokia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).