linux/kernel/module
Luis Chamberlain c7ee8aebf6 module: add stop-grap sanity check on module memcpy()
The integrity of the struct module we load is important, and although
our ELF validator already checks that the module section must match
struct module, add a stop-gap check before we memcpy() the final minted
module. This also makes those inspecting the code what the goal is.

While at it, clarify the goal behind updating the sh_addr address.
The current comment is pretty misleading.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
2023-03-24 11:33:08 -07:00
..
debug_kmemleak.c
decompress.c module/decompress: Never use kunmap() for local un-mappings 2023-03-22 16:12:35 -07:00
internal.h module: add a for_each_modinfo_entry() 2023-03-24 11:05:15 -07:00
kallsyms.c kallsyms: Delete an unused parameter related to {module_}kallsyms_on_each_symbol() 2023-03-19 13:27:19 -07:00
Kconfig module/decompress: Support zstd in-kernel decompression 2022-12-07 12:05:05 -08:00
kdb.c module: replace module_layout with module_memory 2023-03-09 12:55:15 -08:00
livepatch.c
main.c module: add stop-grap sanity check on module memcpy() 2023-03-24 11:33:08 -07:00
Makefile
procfs.c module: replace module_layout with module_memory 2023-03-09 12:55:15 -08:00
signing.c
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: tracking: Keep a record of tainted unloaded modules only 2022-10-10 12:16:19 -07:00
tree_lookup.c module: replace module_layout with module_memory 2023-03-09 12:55:15 -08:00
version.c