Re: [PATCH 2.6.17-rc4 6/6] Remove some of the kmemleak false positives
From: Ingo Oeser
Date: Sun May 14 2006 - 13:42:39 EST
Hi Catalin,
On Sunday, 14. May 2006 17:39, Catalin Marinas wrote:
> Yet another false positive can be caused by allocation of a size that
> differs from the structure's size (kmalloc(sizeof(struct...) + ...)) and
> kmemleak cannot properly determine the container_of aliases. One example
> is the platform_device_alloc function and a false positive is in
> add_pcspkr in arch/i386/kernel/setup.c.
>
> I'll do more testing and post a new version next week (which will
> include the suggestions I received so far).
While we are at it: How do you handle the encoding of
info into the lower bits of a pointer? For Boehm GC,
this was a major problem, AFAIR. At least the RT-Mutex code
does this. There are others, but I'm to lazy to grep now...
Regards
Ingo Oeser
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/