On 13/06/06, Pekka J Enberg <[email protected]> wrote:
Hi Ingo, On Mon, 12 Jun 2006, Ingo Molnar wrote: > i dont know - i feel uneasy about the 'any pointer' method - it has a > high potential for false negatives, especially for structures that > contain strings (or other random data), etc. Is that a problem in practice? Structures that contain data are usually allocated from the slab. There needs to be a link to that struct from the gc roots to get a false negative. Or am I missing something here?
The gc roots are the data and bss sections (and maybe task kernel stacks) and all the slab-allocated blocks are scanned if a link to them is found from the roots (and all of them are usually scanned). If no link is found, they would be reported as memory leaks (and not scanned). You can't really avoid the scanning of allocated blocks since they may contain pointers to other blocks. -- Catalin - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH 2.6.17-rc6 7/9] Remove some of the kmemleak false positives
- From: Pekka J Enberg <[email protected]>
- Re: [PATCH 2.6.17-rc6 7/9] Remove some of the kmemleak false positives
- References:
- [PATCH 2.6.17-rc6 0/9] Kernel memory leak detector 0.7
- From: Catalin Marinas <[email protected]>
- [PATCH 2.6.17-rc6 7/9] Remove some of the kmemleak false positives
- From: Catalin Marinas <[email protected]>
- Re: [PATCH 2.6.17-rc6 7/9] Remove some of the kmemleak false positives
- From: "Pekka Enberg" <[email protected]>
- Re: [PATCH 2.6.17-rc6 7/9] Remove some of the kmemleak false positives
- From: "Catalin Marinas" <[email protected]>
- Re: [PATCH 2.6.17-rc6 7/9] Remove some of the kmemleak false positives
- From: Pekka J Enberg <[email protected]>
- Re: [PATCH 2.6.17-rc6 7/9] Remove some of the kmemleak false positives
- From: Ingo Molnar <[email protected]>
- Re: [PATCH 2.6.17-rc6 7/9] Remove some of the kmemleak false positives
- From: "Catalin Marinas" <[email protected]>
- Re: [PATCH 2.6.17-rc6 7/9] Remove some of the kmemleak false positives
- From: Ingo Molnar <[email protected]>
- Re: [PATCH 2.6.17-rc6 7/9] Remove some of the kmemleak false positives
- From: Pekka J Enberg <[email protected]>
- [PATCH 2.6.17-rc6 0/9] Kernel memory leak detector 0.7
- Prev by Date: Re: Can't Mount CF-Card on boot of 2.6.15 Kernel on EPIA - VFS: Cannot open root device
- Next by Date: Re: [PATCH] stack overflow checking for x86_64 / 2.6
- Previous by thread: Re: [PATCH 2.6.17-rc6 7/9] Remove some of the kmemleak false positives
- Next by thread: Re: [PATCH 2.6.17-rc6 7/9] Remove some of the kmemleak false positives
- Index(es):