Skip to content

Module Validation Refactor

Matthew Maurer linux-modules lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12module: Take const arg in validate_section_offsetkernel/module/main.c+1 -10 replies
2/12module: Factor out elf_validity_ehdrkernel/module/main.c+47 -230 replies
3/12module: Factor out elf_validity_cache_sechdrskernel/module/main.c+82 -430 replies
4/12module: Factor out elf_validity_cache_secstringskernel/module/main.c+69 -370 replies
5/12module: Factor out elf_validity_cache_index_infokernel/module/main.c+68 -140 replies
6/12module: Factor out elf_validity_cache_index_modkernel/module/main.c+67 -620 replies
7/12module: Factor out elf_validity_cache_index_symkernel/module/main.c+44 -290 replies
8/12module: Factor out elf_validity_cache_index_strkernel/module/main.c+28 -90 replies
9/12module: Group section index calculations togetherkernel/module/main.c+51 -170 replies
10/12module: Factor out elf_validity_cache_strtabkernel/module/main.c+20 -30 replies
11/12module: Additional validation in elf_validity_cache_strtabkernel/module/main.c+37 -10 replies
12/12module: Reformat struct for code stylekernel/module/internal.h+6 -10 replies

Reviews trailers per patch

None of the 12 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSami Tolvanen
SeriesR-b
1/12
2/12
3/12
4/12
5/12
6/12
7/12
8/12
9/12
10/12
11/12
12/12

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/12] Module Validation Refactor

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/[email protected]/

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(-)
Signature · 1 line
2.47.0.rc1.288.g06298d1525-goog