Skip to content

Kernel memory leak detector 0.9

Catalin Marinas lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 28 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10Base support for kmemleakinclude/linux/kernel.h include/linux/memleak.h init/main.c +3 more+1520 -30 replies
2/10Some documentation for kmemleakDocumentation/kmemleak.txt+157 -00 replies
3/10Add the memory allocation/freeing hooks for kmemleakinclude/linux/slab.h mm/page_alloc.c mm/slab.c +1 more+47 -40 replies
4/10Modules support for kmemleakkernel/module.c+41 -00 replies
5/10Add kmemleak support for i386arch/i386/kernel/vmlinux.lds.S include/asm-i386/processor.h include/asm-i386/thread_info.h+25 -10 replies
6/10Add kmemleak support for ARMarch/arm/kernel/vmlinux.lds.S include/asm-arm/processor.h+19 -00 replies
7/10Remove some of the kmemleak false positivesdrivers/base/platform.c drivers/hwmon/w83627hf.c drivers/scsi/hosts.c +8 more+50 -10 replies
8/10Keep the __init functions after initializationinclude/linux/init.h lib/Kconfig.debug+16 -00 replies
9/10Simple testing for kmemleaklib/Kconfig.debug mm/Makefile mm/memleak-test.c+101 -00 replies
10/10Update the MAINTAINERS file for kmemleakMAINTAINERS+6 -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.18-rc4 00/10] Kernel memory leak detector 0.9

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

http://homepage.ntlworld.com/cmarinas/kmemleak/patch-2.6.18-rc4-kmemleak-0.9.bz2
http://homepage.ntlworld.com/cmarinas/kmemleak/broken-out/patches-kmemleak-0.9.tar.bz2

What's new in this version:

- updated for 2.6.18-rc4
- reviewers comments implemented
- the number of reports are limited to avoid soft-lockups in case of a serious memory leak
- some bug-fixes (including one that was preventing the page-aligned blocks from being reported)

To do:

- testing on a wider range of platforms and configurations
- support for ioremap tracking (once the generic ioremap patches are merged)
- eliminate the task stacks scanning (if possible, by marking the allocated blocks as temporary until the return to user-space - Ingo's suggestion)
- precise type identification (after first assessing the efficiency of the current method as it requires changes to the kernel API)

Signature · 1 line
Catalin