[GIT PULL] Modules changes for v6.14-rc1

From: Petr Pavlu
Date: Sun Jan 26 2025 - 09:05:58 EST


The following changes since commit ffd294d346d185b70e28b1a28abe367bbfe53c04:

Linux 6.13 (2025-01-19 15:51:45 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/modules/linux.git/ tags/modules-6.14-rc1

for you to fetch changes up to f3b93547b91ad849b58eb5ab2dd070950ad7beb3:

module: sign with sha512 instead of sha1 by default (2025-01-26 13:05:24 +0100)

----------------------------------------------------------------
Modules changes for 6.14-rc1

Several fixes and small improvements are present:

- Sign modules with sha512 instead of sha1 by default

- Don't fail module loading when setting ro_after_init section RO failed

- Constify 'struct module_attribute'

- Cleanups and preparation for const struct bin_attribute

- Put known GPL offenders in an array

- Extend the preempt disabled section in dereference_symbol_descriptor()

This has been all on linux-next for at least 2 weeks with no issues.

A small merge conflict between the changes here and a pull from the
driver-core tree might appear in kernel/module/sysfs.c, function
add_notes_attrs(). The code has been cleaned up here and the driver-core
additionally changes nattr->read to nattr->read_new.

Related to the modules, an important new tool gendwarfksyms to calculate
symbols CRCs from DWARF data and thereby enable the modversion support for
Rust should come through the kbuild tree.

----------------------------------------------------------------
Christophe Leroy (2):
module: Split module_enable_rodata_ro()
module: Don't fail module loading when setting ro_after_init section RO failed

Sebastian Andrzej Siewior (1):
module: Extend the preempt disabled section in dereference_symbol_descriptor().

Thomas Weißschuh (9):
params: Prepare for 'const struct module_attribute *'
module: Handle 'struct module_version_attribute' as const
module: Constify 'struct module_attribute'
module: sysfs: Drop member 'module_sect_attrs::nsections'
module: sysfs: Drop member 'module_sect_attr::address'
module: sysfs: Drop 'struct module_sect_attr'
module: sysfs: Simplify section attribute allocation
module: sysfs: Add notes attributes through attribute_group
module: sysfs: Use const 'struct bin_attribute'

Thorsten Leemhuis (1):
module: sign with sha512 instead of sha1 by default

Uwe Kleine-König (1):
module: Put known GPL offenders in an array

include/linux/kallsyms.h | 2 +-
include/linux/module.h | 10 ++--
kernel/module/Kconfig | 1 +
kernel/module/internal.h | 7 +--
kernel/module/main.c | 74 +++++++++++++++-------------
kernel/module/strict_rwx.c | 13 +++--
kernel/module/sysfs.c | 120 +++++++++++++++++++++------------------------
kernel/params.c | 22 ++++-----
8 files changed, 128 insertions(+), 121 deletions(-)