Re: [PATCH v3 0/5] kmemleak: few small cleanups and clear commandsupport

From: Catalin Marinas
Date: Mon Sep 07 2009 - 13:29:43 EST

On Fri, 2009-09-04 at 17:44 -0700, Luis R. Rodriguez wrote:
> Here is my third respin, this time rebased ontop of:
> git:// kmemleak
> As suggested by Catalin we now clear the list by only painting reported
> unreferenced objects and the color we use is grey to ensure future
> scans are possible on these same objects to account for new allocations
> in the future referenced on the cleared objects.
> Patch 3 is now a little different, now with a paint_ptr() and
> a __paint_it() helper.

Thanks for the patches. They look ok now, I'll merge them tomorrow to my
kmemleak branch and give them a try.

> I tested this by clearing kmemleak after bootup, then writing my
> own buggy module which kmalloc()'d onto some internal pointer,
> scanned, unloaded, and scanned again and then saw a new shiny
> report come up:

BTW, kmemleak comes with a test module which does this.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at