From: Tim Bird <tim.bird@am.sony.com>
To: Catalin Marinas <catalin.marinas@arm.com>
Cc: linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: Possible kmemleak issue, but I'm confused
Date: Wed, 25 Aug 2010 09:29:46 -0700 [thread overview]
Message-ID: <4C7544FA.5030304@am.sony.com> (raw)
In-Reply-To: <1282727985.3650.19.camel@e102109-lin.cambridge.arm.com>
On 08/25/2010 02:19 AM, Catalin Marinas wrote:
>> What is the status of this patch relative to linux-next or Linus'
>> tree?
>
> This patch was merged in 2.6.31-rc1 but parts of it were later dropped
> in 2.6.34-rc1 (commit 23fb064b) when Tejun removed the legacy percpu
> allocator. The new percpu allocator in mm/percpu.c uses standard
> allocation methods like alloc_bootmem or kzalloc and kmemleak handles
> these already, so no need for extra code in kernel/module.c.
OK. This is just the information I needed. Thanks.
>> Our solution was just to make these specific calls to kmemleak_alloc
>> and kmemleak_free (in module.c) compile-time configurable.
>> I suspect that there is a better way to do this -- possibly by
>> detecting or noting that this situation exists for certain
>> platforms, and avoiding it without specific user interaction.
>
> For the 2.6.29 kernel (not mainline), you could have it compile-time
> configurable. Another option would be to hack create_object() in
> mm/kmemleak.c to not call kmemleak_stop("Cannot insert ..."), though
> this method could potentially hide other problems with kmemleak
> callbacks.
We'll stick with our compile-time option, then, and it sounds
like when we upgrade our kernel version we won't need to worry
about this issue.
Thanks very much! kmemleak is cool. :-)
-- Tim
=============================
Tim Bird
Architecture Group Chair, CE Linux Forum
Senior Staff Engineer, Sony Network Entertainment
=============================
prev parent reply other threads:[~2010-08-25 16:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-24 22:55 Possible kmemleak issue, but I'm confused Tim Bird
2010-08-25 9:19 ` Catalin Marinas
2010-08-25 16:29 ` Tim Bird [this message]
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=4C7544FA.5030304@am.sony.com \
--to=tim.bird@am.sony.com \
--cc=catalin.marinas@arm.com \
--cc=linux-kernel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.