]> www.infradead.org Git - users/jedix/linux-maple.git/commit
module: Factor out elf_validity_cache_sechdrs
authorMatthew Maurer <mmaurer@google.com>
Tue, 15 Oct 2024 23:16:37 +0000 (23:16 +0000)
committerLuis Chamberlain <mcgrof@kernel.org>
Sat, 19 Oct 2024 21:35:07 +0000 (14:35 -0700)
commitc92aab819d56d51631f0484ed7af11d9d8ff4cb0
tree9969cdfe33bbae15e92cb78148ec3f0d0a83c3c5
parent90f8f312db720dbabec7c6258ef580b50129cc21
module: Factor out elf_validity_cache_sechdrs

Factor out and document the validation of section headers.

Because we now validate all section offsets and lengths before accessing
them, we can remove the ad-hoc checks.

Signed-off-by: Matthew Maurer <mmaurer@google.com>
Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
kernel/module/main.c