[GIT PULL] Modules fixes for v7.0-rc3
From: Sami Tolvanen
Date: Wed Mar 04 2026 - 18:29:25 EST
The following changes since commit 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f:
Linux 7.0-rc1 (2026-02-22 13:18:59 -0800)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/modules/linux.git tags/modules-7.0-rc3.fixes
for you to fetch changes up to f9d69d5e7bde2295eb7488a56f094ac8f5383b92:
module: Fix kernel panic when a symbol st_shndx is out of bounds (2026-02-23 19:37:28 +0000)
----------------------------------------------------------------
Modules fixes for v7.0-rc3
- Fix a potential kernel panic in the module loader by adding a bounds
check for the ELF section index. This prevents crashes if attempting
to load a module that uses SHN_XINDEX or is corrupted.
- Fix the Kconfig menu layout for module versioning, signing, and
compression options so they correctly appear as submenus in menuconfig.
- Remove a redundant lockdep_free_key_range() call in the load_module()
error path. This is already handled by module_deallocate() calling
free_mod_mem() since the module_memory rework.
Signed-off-by: Sami Tolvanen <samitolvanen@xxxxxxxxxx>
----------------------------------------------------------------
Ihor Solodrai (1):
module: Fix kernel panic when a symbol st_shndx is out of bounds
Petr Pavlu (2):
module: Remove duplicate freeing of lockdep classes
module: Fix the modversions and signing submenus
kernel/module/Kconfig | 23 +++++++++++++----------
kernel/module/main.c | 13 +++++++------
2 files changed, 20 insertions(+), 16 deletions(-)