Skip to content
Commit 430bb0d1 authored by Luis Chamberlain's avatar Luis Chamberlain
Browse files

module: fix kmemleak annotations for non init ELF sections



Commit ac3b4328 ("module: replace module_layout with module_memory")
reworked the way to handle memory allocations to make it clearer. But it
lost in translation how we handled kmemleak_ignore() or kmemleak_not_leak()
for different ELF sections.

Fix this and clarify the comments a bit more. Contrary to the old way
of using kmemleak_ignore() for init.* ELF sections we stick now only to
kmemleak_not_leak() as per suggestion by Catalin Marinas so to avoid
any false positives and simplify the code.

Fixes: ac3b4328 ("module: replace module_layout with module_memory")
Reported-by: default avatarJim Cromie <jim.cromie@gmail.com>
Acked-by: default avatarSong Liu <song@kernel.org>
Suggested-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Reviewed-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
parent 0a3bf860
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment