Skip to content

Kernel memory leak detector 0.2

Catalin Marinas lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7Base support for kmemleakinclude/linux/kernel.h include/linux/memleak.h init/main.c +3 more+907 -32 replies
2/7Some documentation for kmemleakDocumentation/kmemleak.txt+92 -00 replies
3/7Add the memory allocation/freeing hooks for kmemleakdrivers/base/platform.c include/linux/slab.h mm/page_alloc.c +2 more+53 -60 replies
4/7Add kmemleak support for i386arch/i386/kernel/vmlinux.lds.S include/asm-i386/processor.h+16 -00 replies
5/7Add kmemleak support for ARMarch/arm/kernel/vmlinux.lds.S include/asm-arm/processor.h+19 -00 replies
6/7Remove some of the kmemleak false positivesipc/util.c kernel/params.c+7 -20 replies
7/7Simple testing for kmemleaklib/Kconfig.debug mm/Makefile mm/memleak-test.c+63 -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/7] Kernel memory leak detector 0.2

This is a new version (0.2) of the kernel memory leak detector based on the tracing garbage collection technique. See the Documentation/kmemleak.txt file for a more detailed description. The patches are also available from
http://homepage.ntlworld.com/cmarinas/kmemleak/.

Thanks to all who contributed useful suggestions for these patches.

What's new in this version:

- cleaned up the code according to the suggestions on LKML
- implemented the buffering of allocation/freeing calls before kmemleak is properly initialised (many allocations would be missed without this feature)
- moved the pointer leaks information from /proc/memleak to /sys/kernel/debug/memleak (debugfs)
- the task stacks are not scanned by default because this can lead to many false negatives
- fixed the locking and tested on SMP (ARM)
- fixed other bugs

To do:

- better testing
- better support for modules (module static variables, new pointer aliases found in modules)
- test Ingo's suggestion on task stack scanning
- NUMA support

Signature · 1 line
Catalin