kmemleak: Reduce the false positives by checking for modified objects
authorCatalin Marinas <catalin.marinas@arm.com>
Wed, 28 Oct 2009 13:33:12 +0000 (13:33 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 28 Oct 2009 17:07:54 +0000 (17:07 +0000)
commit04609ccc40c4e8f3eabe8894eb0de881c8b984fd
treebb48d91643e04b49312bc12a0a55ffa4ca2e4baa
parentfefdd336b2a2f7617e0c8a0777c731d9ed6454ae
kmemleak: Reduce the false positives by checking for modified objects

If an object was modified since it was previously suspected as leak, do
not report it. The modification check is done by calculating the
checksum (CRC32) of such object.

Several false positives are caused by objects being removed from linked
lists (e.g. allocation pools) and temporarily breaking the reference
chain since kmemleak runs concurrently with such list mutation
primitives.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
mm/kmemleak.c