linux/tools/objtool
Michal Kubecek 03d7a1053c objtool: Check that module init/exit function is an indirect call target
Some out-of-tree modules still do not use module_init() / module_exit()
macros and simply create functions with magic names init_module() and
cleanup_module() instead. As a result, these functions are not recognized
as indirect call targets by objtool and such module fails to load into an
IBT enabled kernel.

This old way is not even documented any more but it is cleaner to issue
a warning than to let the module fail on load without obvious reason.

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20230118105215.B9DA960514@lion.mk-sys.cz
2023-01-21 10:50:18 +01:00
..
arch powerpc updates for 6.2 2022-12-19 07:13:33 -06:00
Documentation objtool: Check that module init/exit function is an indirect call target 2023-01-21 10:50:18 +01:00
include/objtool powerpc updates for 6.2 2022-12-19 07:13:33 -06:00
.gitignore objtool: Rework header include paths 2021-01-13 18:13:14 -06:00
Build objtool: Ditch subcommands 2022-04-22 12:32:01 +02:00
builtin-check.c powerpc updates for 6.2 2022-12-19 07:13:33 -06:00
check.c objtool: Check that module init/exit function is an indirect call target 2023-01-21 10:50:18 +01:00
elf.c powerpc updates for 6.2 2022-12-19 07:13:33 -06:00
Makefile Kbuild updates for v5.19 2022-05-26 12:09:50 -07:00
objtool.c objtool: Add .call_sites section 2022-10-17 16:41:07 +02:00
orc_dump.c objtool: Use target file endianness instead of a compiled constant 2022-11-18 19:00:15 +11:00
orc_gen.c objtool: Use target file endianness instead of a compiled constant 2022-11-18 19:00:15 +11:00
special.c objtool: Use target file endianness instead of a compiled constant 2022-11-18 19:00:15 +11:00
sync-check.sh Merge branch 'x86/cpu' into WIP.x86/core, to merge the NOP changes & resolve a semantic conflict 2021-04-02 12:36:30 +02:00
weak.c objtool: Ditch subcommands 2022-04-22 12:32:01 +02:00