diff options
author | Luis Chamberlain <mcgrof@kernel.org> | 2023-04-05 04:52:47 +0300 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2023-04-14 19:36:22 +0300 |
commit | 430bb0d1c3376c988982f14bcbe71f917c89e1ab (patch) | |
tree | 4006f12a1f56b63cb59e7937bcbcf69a4bbab87a /arch/mips/cavium-octeon/setup.c | |
parent | 0a3bf86092c38f7b72c56c6901c78dd302411307 (diff) | |
download | linux-430bb0d1c3376c988982f14bcbe71f917c89e1ab.tar.xz |
module: fix kmemleak annotations for non init ELF sections
Commit ac3b43283923 ("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: ac3b43283923 ("module: replace module_layout with module_memory")
Reported-by: Jim Cromie <jim.cromie@gmail.com>
Acked-by: Song Liu <song@kernel.org>
Suggested-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'arch/mips/cavium-octeon/setup.c')
0 files changed, 0 insertions, 0 deletions