Skip to content

Kernel memory leak detector 0.7

Catalin Marinas lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 42 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9Base support for kmemleakinclude/linux/kernel.h include/linux/memleak.h init/main.c +3 more+1323 -32 replies
2/9Some documentation for kmemleakDocumentation/kmemleak.txt+92 -00 replies
3/9Add the memory allocation/freeing hooks for kmemleakinclude/linux/slab.h mm/page_alloc.c mm/slab.c +1 more+48 -40 replies
4/9Modules support for kmemleakkernel/module.c+32 -00 replies
5/9Add kmemleak support for i386arch/i386/kernel/vmlinux.lds.S include/asm-i386/processor.h include/asm-i386/thread_info.h+25 -10 replies
6/9Add kmemleak support for ARMarch/arm/kernel/vmlinux.lds.S include/asm-arm/processor.h+19 -00 replies
7/9Remove some of the kmemleak false positivesarch/i386/kernel/setup.c drivers/base/platform.c drivers/hwmon/w83627hf.c +7 more+15 -240 replies
8/9Simple testing for kmemleaklib/Kconfig.debug mm/Makefile mm/memleak-test.c+93 -00 replies
9/9Keep the __init functions after initializationinclude/linux/init.h lib/Kconfig.debug+14 -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-rc6 0/9] Kernel memory leak detector 0.7

This is a new version (0.7) 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 series):

http://homepage.ntlworld.com/cmarinas/kmemleak/patch-2.6.17-rc6-kmemleak-0.7.bz2
http://homepage.ntlworld.com/cmarinas/kmemleak/patches-kmemleak-0.7.tar.bz2

What's new in this version:

- different configuration options added for tweaking kmemleak
- reduced the length of time running with interrupts disabled (the interrupts are now only disabled for individual memory block scanning rather than for the whole memory)
- fixed bug in the memleak_seq_* functions (pointer structure accessed after freeing)
- more false positives ignored

To do:

- more testing
- more investigation into the task stacks scanning
- NUMA support
- (support for ioremap tracking)

Many thanks to Michal Piotrowski for stress-testing kmemleak and reporting various issues.

Signature · 1 line
Catalin