Skip to content

Kernel memory leak detector 0.4

Catalin Marinas lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8Base support for kmemleakinclude/linux/kernel.h include/linux/memleak.h init/main.c +3 more+1167 -30 replies
2/8Some documentation for kmemleakDocumentation/kmemleak.txt+92 -00 replies
3/8Add the memory allocation/freeing hooks for kmemleakdrivers/base/platform.c include/linux/slab.h mm/page_alloc.c +2 more+49 -40 replies
4/8Modules support for kmemleakkernel/module.c+32 -00 replies
5/8Add kmemleak support for i386arch/i386/kernel/vmlinux.lds.S include/asm-i386/processor.h+16 -00 replies
6/8Add kmemleak support for ARMarch/arm/kernel/vmlinux.lds.S include/asm-arm/processor.h+19 -00 replies
7/8Remove some of the kmemleak false positivesarch/i386/kernel/setup.c ipc/util.c kernel/params.c +1 more+9 -23 replies
8/8Simple testing for kmemleaklib/Kconfig.debug mm/Makefile mm/memleak-test.c+93 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 2.6.17-rc5 0/8] Kernel memory leak detector 0.4

This is a new version (0.4) of the kernel memory leak detector. See the Documentation/kmemleak.txt file for a more detailed description. The patches are downloadable from (the bundled patch or the full series):

http://homepage.ntlworld.com/cmarinas/kmemleak/patch-2.6.17-rc5-kmemleak-0.4.bz2
http://homepage.ntlworld.com/cmarinas/kmemleak/patches-kmemleak-0.4.tar.bz2

What's new in this version:

- full kernel modules support
- kmemleak now depends on DEBUG_SLAB. The detection is improved by the objects poisoning caused by this configuration option
- freeing orphan pointers is no longer reported since these can be false positives
- replaced some _rcu list traversal loops with their normal or _safe form

To do:

- better testing
- test Ingo's suggestion on task stacks scanning
- NUMA support
- (support for ioremap)

Signature · 1 line
Catalin