]> git.baikalelectronics.ru Git - kernel.git/commit
kmemleak: Scan all allocated, writeable and not executable module sections
authorSteven Rostedt <rostedt@goodmis.org>
Wed, 15 May 2013 19:33:01 +0000 (20:33 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 17 May 2013 08:53:07 +0000 (09:53 +0100)
commit8bf0f228908315ee11311c8a3fc73c409481af17
tree22da52e773d30408d0372eeb20f18821d2834cca
parent9dd09e6de2d6786a50b589a77aeec22d46f3a4ab
kmemleak: Scan all allocated, writeable and not executable module sections

Instead of just picking data sections by name (names that start
with .data, .bss or .ref.data), use the section flags and scan all
sections that are allocated, writable and not executable. Which should
cover all sections of a module that might reference data.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
[catalin.marinas@arm.com: removed unused 'name' variable]
[catalin.marinas@arm.com: collapsed 'if' blocks]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/module.c