linux/kernel/module
Masahiro Yamada cdd66eb52f module: do not binary-search in __ksymtab_gpl if fsa->gplok is false
Currently, !fsa->gplok && syms->license == GPL_ONLY) is checked after
bsearch() succeeds.

It is meaningless to do the binary search in the GPL symbol table when
fsa->gplok is false because we know find_exported_symbol_in_section()
will fail anyway.

This check should be done before bsearch().

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
2022-05-12 10:29:41 -07:00
..
debug_kmemleak.c module: Move kmemleak support to a separate file 2022-04-05 08:43:04 -07:00
decompress.c module: Make internal.h and decompress.c more compliant 2022-04-05 08:42:35 -07:00
internal.h module: Introduce module unload taint tracking 2022-05-12 10:29:41 -07:00
kallsyms.c module: Introduce data_layout 2022-04-05 08:43:05 -07:00
kdb.c module: Add CONFIG_ARCH_WANTS_MODULES_DATA_IN_VMALLOC 2022-04-05 08:43:05 -07:00
livepatch.c module: Move livepatch support to a separate file 2022-04-05 08:43:04 -07:00
main.c module: do not binary-search in __ksymtab_gpl if fsa->gplok is false 2022-05-12 10:29:41 -07:00
Makefile module: Introduce module unload taint tracking 2022-05-12 10:29:41 -07:00
procfs.c module: Add CONFIG_ARCH_WANTS_MODULES_DATA_IN_VMALLOC 2022-04-05 08:43:05 -07:00
signing.c module: Move extra signature support out of core code 2022-04-05 08:43:04 -07:00
strict_rwx.c module: Add CONFIG_ARCH_WANTS_MODULES_DATA_IN_VMALLOC 2022-04-05 08:43:05 -07:00
sysfs.c module: Move sysfs support into a separate file 2022-04-05 08:43:04 -07:00
tracking.c module: Introduce module unload taint tracking 2022-05-12 10:29:41 -07:00
tree_lookup.c module: Add CONFIG_ARCH_WANTS_MODULES_DATA_IN_VMALLOC 2022-04-05 08:43:05 -07:00
version.c module: Move version support into a separate file 2022-04-05 08:43:04 -07:00