[PATCH 00/12] Module Validation Refactor
From: Matthew Maurer
Date: Tue Oct 15 2024 - 19:17:07 EST
Split out from Extended MODVERSIONS Support [1]
This series refactors module validation during loading to ensure that
everything is checked on its way in. This is intended to make the code
robust enough that we can more confidently add new pieces like extended
MODVERSIONS.
[1] https://lore.kernel.org/all/20240925233854.90072-1-mmaurer@xxxxxxxxxx/
Matthew Maurer (12):
module: Take const arg in validate_section_offset
module: Factor out elf_validity_ehdr
module: Factor out elf_validity_cache_sechdrs
module: Factor out elf_validity_cache_secstrings
module: Factor out elf_validity_cache_index_info
module: Factor out elf_validity_cache_index_mod
module: Factor out elf_validity_cache_index_sym
module: Factor out elf_validity_cache_index_str
module: Group section index calculations together
module: Factor out elf_validity_cache_strtab
module: Additional validation in elf_validity_cache_strtab
module: Reformat struct for code style
kernel/module/internal.h | 7 +-
kernel/module/main.c | 569 +++++++++++++++++++++++++++++----------
2 files changed, 428 insertions(+), 148 deletions(-)
--
2.47.0.rc1.288.g06298d1525-goog