[GIT PULL] Modules changes for v7.3-rc1

From: Petr Pavlu

Date: Fri Aug 21 2026 - 05:31:29 EST


The following changes since commit 8cdeaa50eae8dad34885515f62559ee83e7e8dda:

Linux 7.2-rc2 (2026-07-05 14:44:06 -1000)

are available in the Git repository at:

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

for you to fetch changes up to 3dfaae04243cde460d82dfc2a7dd0bb6664d20ae:

params: fix charp corruption on allocation failure (2026-08-06 16:44:48 +0200)

----------------------------------------------------------------
Modules changes for 7.3-rc1

- Remove unnecessary module::args. Nowadays, no parameter-handling code
points into the module::args buffer. The last user of module::args in
xtensa/simdisk is updated and the data is then removed.

- Add Rust support for boolean parameters. This will initially be used by
the Rust null block driver.

- Fix clearing the current charp parameter value when setting a new one
fails due to an allocation failure.

- Improve the debugging code for kmod (request_module()) duplicates. Fix
a potential use-after-free when waiting on a duplicate request and make
several general improvements to the code.

- Fix the symbol size returned when looking up a data symbol through
kallsyms.

- The remaining changes are smaller fixes and cleanups.

----------------------------------------------------------------
Andreas Hindborg (1):
rust: module_param: return value by copy from `value`

Jiacheng Yu (1):
params: fix charp corruption on allocation failure

Naveen Kumar Chaudhary (2):
module: use strscpy() to copy module names in stats and dup tracking
module: procfs: use matching type for accumulator in module_total_size()

Petr Pavlu (9):
module: Remove unused DISCARD_EH_FRAME definition from module.lds.S
xtensa/simdisk: Avoid referring to module::args
module: Remove unnecessary module::args
module/dups: Inform duplicate requests about the result directly
module/dups: Fix use-after-free in kmod_dup_req lifetime handling
module/dups: Avoid unnecessary kmod_dup_req allocations
module/dups: Use scope-based cleanup helpers
module/dups: Use strcmp() to compare module names
module/dups: Clean up includes

Stanislaw Gruszka (1):
module/kallsyms: fix nextval for data symbol lookup

Thiébaud Weksteen (1):
module: validate string table section types

Wenzhao Liao (1):
rust: module_param: support bool parameters

Zenghui Yu (1):
params: fix path of /sys/module/XYZ/parameters/ in comment

arch/xtensa/platforms/iss/simdisk.c | 38 ++++++--
include/linux/module.h | 4 -
kernel/module/dups.c | 169 ++++++++++++++++--------------------
kernel/module/kallsyms.c | 24 +++--
kernel/module/main.c | 29 +++++--
kernel/module/procfs.c | 2 +-
kernel/module/stats.c | 2 +-
kernel/params.c | 16 ++--
rust/kernel/module_param.rs | 27 +++++-
rust/macros/lib.rs | 1 +
rust/macros/module.rs | 1 +
samples/rust/rust_minimal.rs | 10 ++-
scripts/module.lds.S | 5 --
13 files changed, 194 insertions(+), 134 deletions(-)