OpenCloudOS-Kernel/kernel/module
Kairui Song 1ad7b9314f kabi: modules: better vermagic check on module load
Upstream: no

For livepatch module, always force full vermagic match since kernel
function may updated in minor releases.

For other modules, only check the major version, and first two field of
kernel release number.

eg. our vermagic could look like this:
- vermagic: 5.18.0-2207.3.tks SMP preempt mod_unload modversions
- vermagic: 5.18.0-2207.3.1.tks SMP preempt mod_unload modversions
- vermagic: 5.18.0-2207.3.1.test.tks SMP preempt mod_unload modversions

In these examples, "2207" and "3" is the kabi compatiblilty indicator.
If the first two field of release number matches, it's a kabi compatible
release.

Signed-off-by: Kairui Song <kasong@tencent.com>
2023-12-12 15:56:45 +08:00
..
Kconfig module: add debugging auto-load duplicate module support 2023-04-19 17:26:01 -07:00
Makefile module: add debugging auto-load duplicate module support 2023-04-19 17:26:01 -07:00
debug_kmemleak.c
decompress.c module/decompress: use kvmalloc() consistently 2023-11-20 11:59:37 +01:00
dups.c module: include internal.h in module/dups.c 2023-05-02 20:33:36 -07:00
internal.h kbuild: generate KSYMTAB entries by modpost 2023-06-22 21:17:10 +09:00
kallsyms.c modpost, kallsyms: Treat add '$'-prefixed symbols as mapping symbols 2023-07-24 12:09:47 -07:00
kdb.c module: replace module_layout with module_memory 2023-03-09 12:55:15 -08:00
kmod.c module: add debugging auto-load duplicate module support 2023-04-19 17:26:01 -07:00
livepatch.c livepatch: fix ELF typos 2023-03-09 11:08:24 +01:00
main.c kabi: modules: better vermagic check on module load 2023-12-12 15:56:45 +08:00
procfs.c module: replace module_layout with module_memory 2023-03-09 12:55:15 -08:00
signing.c
stats.c module: Fix use-after-free bug in read_file_mod_stats() 2023-05-22 14:13:13 -07:00
strict_rwx.c module: replace module_layout with module_memory 2023-03-09 12:55:15 -08:00
sysfs.c module: remove redundant module_sysfs_initialized variable 2022-11-11 10:19:52 -08:00
tracking.c module: add debug stats to help identify memory pressure 2023-04-18 11:15:24 -07:00
tree_lookup.c module: replace module_layout with module_memory 2023-03-09 12:55:15 -08:00
version.c kabi: modules: better vermagic check on module load 2023-12-12 15:56:45 +08:00