[GIT PULL] Modules changes for v6.15-rc1
From: Petr Pavlu
Date: Fri Mar 28 2025 - 11:56:13 EST
The following changes since commit 80e54e84911a923c40d7bee33a34c1b4be148d7a:
Linux 6.14-rc6 (2025-03-09 13:45:25 -1000)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/modules/linux.git/ tags/modules-6.15-rc1
for you to fetch changes up to 897c0b4e27135132dc5b348c1a3773d059668489:
MAINTAINERS: Update the MODULE SUPPORT section (2025-03-28 15:08:20 +0100)
----------------------------------------------------------------
Modules changes for 6.15-rc1
- Use RCU instead of RCU-sched
The mix of rcu_read_lock(), rcu_read_lock_sched() and preempt_disable()
in the module code and its users has been replaced with just
rcu_read_lock().
- The rest of changes are smaller fixes and updates.
The changes have been on linux-next for at least 2 weeks, with the RCU
cleanup present for 2 months. One performance problem was reported with the
RCU change when KASAN + lockdep were enabled, but it was effectively
addressed by the already merged ee57ab5a3212 ("locking/lockdep: Disable
KASAN instrumentation of lockdep.c").
----------------------------------------------------------------
Joel Granados (1):
tests/module: nix-ify
Petr Pavlu (1):
MAINTAINERS: Update the MODULE SUPPORT section
Sebastian Andrzej Siewior (27):
module: Begin to move from RCU-sched to RCU.
module: Use proper RCU assignment in add_kallsyms().
module: Use RCU in find_kallsyms_symbol().
module: Use RCU in module_get_kallsym().
module: Use RCU in find_module_all().
module: Use RCU in __find_kallsyms_symbol_value().
module: Use RCU in module_kallsyms_on_each_symbol().
module: Remove module_assert_mutex_or_preempt() from try_add_tainted_module().
module: Use RCU in find_symbol().
module: Use RCU in __is_module_percpu_address().
module: Allow __module_address() to be called from RCU section.
module: Use RCU in search_module_extables().
module: Use RCU in all users of __module_address().
module: Use RCU in all users of __module_text_address().
ARM: module: Use RCU in all users of __module_text_address().
arm64: module: Use RCU in all users of __module_text_address().
LoongArch/orc: Use RCU in all users of __module_address().
LoongArch: ftrace: Use RCU in all users of __module_text_address().
powerpc/ftrace: Use RCU in all users of __module_text_address().
cfi: Use RCU while invoking __module_address().
x86: Use RCU in all users of __module_address().
jump_label: Use RCU in all users of __module_address().
jump_label: Use RCU in all users of __module_text_address().
bpf: Use RCU in all users of __module_text_address().
kprobes: Use RCU in all users of __module_text_address().
static_call: Use RCU in all users of __module_text_address().
bug: Use RCU instead RCU-sched to protect module_bug_list.
Thorsten Blum (3):
params: Annotate struct module_param_attrs with __counted_by()
module: Replace deprecated strncpy() with strscpy()
module: Remove unnecessary size argument when calling strscpy()
MAINTAINERS | 4 +-
arch/arm/kernel/module-plts.c | 4 +-
arch/arm64/kernel/ftrace.c | 7 +-
arch/loongarch/kernel/ftrace_dyn.c | 9 ++-
arch/loongarch/kernel/unwind_orc.c | 4 +-
arch/powerpc/kernel/trace/ftrace.c | 6 +-
arch/powerpc/kernel/trace/ftrace_64_pg.c | 6 +-
arch/x86/kernel/callthunks.c | 3 +-
arch/x86/kernel/unwind_orc.c | 4 +-
include/linux/kallsyms.h | 3 +-
include/linux/module.h | 2 +-
kernel/cfi.c | 5 +-
kernel/jump_label.c | 31 +++++----
kernel/kprobes.c | 2 +-
kernel/livepatch/core.c | 4 +-
kernel/module/internal.h | 11 ----
kernel/module/kallsyms.c | 73 ++++++++-------------
kernel/module/main.c | 109 +++++++++++--------------------
kernel/module/tracking.c | 2 -
kernel/module/tree_lookup.c | 8 +--
kernel/module/version.c | 14 ++--
kernel/params.c | 29 ++++----
kernel/static_call_inline.c | 13 ++--
kernel/trace/bpf_trace.c | 24 +++----
kernel/trace/trace_kprobe.c | 9 +--
lib/bug.c | 22 +++----
lib/tests/module/gen_test_kallsyms.sh | 2 +-
27 files changed, 160 insertions(+), 250 deletions(-)