Skip to content

module: Sync with upstream to v6.0-rc1

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2124824 Build: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=47654300 Tested: Compile and boot only

This series is based on tag modules-6.0-rc1 [1] which is similar to Linus' v6.0-rc1 yet excludes kunit related work. Please note, I plan to prepare a RHEL-only patch/or deviation from upstream: enabled Kconfig option CONFIG_MODULE_UNLOAD_TAINT_TRACKING to allow us to maintain a permanent record of each unloaded module that taints the kernel (see Linus' commit 99bd9956 "module: Introduce module unload taint tracking").

1: git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git

Aaron Tomlin (21): module: Move all into module/ module: Simple refactor in preparation for split module: Make internal.h and decompress.c more compliant module: Move livepatch support to a separate file module: Move latched RB-tree support to a separate file module: Move strict rwx support to a separate file module: Move extra signature support out of core code module: Move kmemleak support to a separate file module: Move kallsyms support into a separate file module: kallsyms: Fix suspicious rcu usage module: Move procfs support into a separate file module: Move sysfs support into a separate file module: Move kdb module related code out of main kdb code module: Move version support into a separate file module: Make module_flags_taint() accept a module's taints bitmap and usable outside core code module: Move module_assert_mutex_or_preempt() to internal.h module: Introduce module unload taint tracking module: kallsyms: Ensure preemption in add_kallsyms() with PREEMPT_RT module: Modify module_flags() to accept show_state argument module: Use strscpy() for last_unloaded_module module: Show the last unloaded module's taint flag(s)

Adrian Hunter (1): modules: Fix corruption of /proc/kallsyms

Alexey Dobriyan (1): module: fix [e_shstrndx].sh_size=0 OOB access

Christophe Leroy (14): module: Make module_enable_x() independent of CONFIG_ARCH_HAS_STRICT_MODULE_RWX module: Move module_enable_x() and frob_text() in strict_rwx.c module: Rework layout alignment to avoid BUG_ON()s module: Rename debug_align() as strict_align() module: Always have struct mod_tree_root module: Prepare for handling several RB trees module: Introduce data_layout module: Add CONFIG_ARCH_WANTS_MODULES_DATA_IN_VMALLOC module: Remove module_addr_min and module_addr_max module: Fix selfAssignment cppcheck warning module: Fix "warning: variable 'exit' set but not used" module: Fix ERRORs reported by checkpatch.pl module: Increase readability of module_kallsyms_lookup_name() module: Move module's Kconfig items in kernel/module/

Fabio M. De Francesco (1): module: Replace kmap() with kmap_local_page()

Lecopzer Chen (1): module: show disallowed symbol name for inherit_taint()

Masahiro Yamada (3): module: do not pass opaque pointer for symbol search module: do not binary-search in __ksymtab_gpl if fsa->gplok is false module: merge check_exported_symbol() into find_exported_symbol_in_section()

Saravana Kannan (2): module: Fix prefix for module.sig_enforce module param module: Add support for default value for module async_probe

Yang Yingliang (1): module: Use vzalloc() instead of vmalloc()/memset(0)

Upstream commit(s):

554694ba120b module: Replace kmap() with kmap_local_page() 6f1dae1d84b6 module: Show the last unloaded module's taint flag(s) dbf0ae65bce4 module: Use strscpy() for last_unloaded_module 17dd25c29cda module: Modify module_flags() to accept show_state argument 73b4fc92f97d module: Move module's Kconfig items in kernel/module/ 2b9401e90d36 module: Use vzalloc() instead of vmalloc()/memset(0) 07ade45a765b module: Increase readability of module_kallsyms_lookup_name() ecc726f1458e module: Fix ERRORs reported by checkpatch.pl ae39e9ed964f module: Add support for default value for module async_probe e69a66147d49 module: kallsyms: Ensure preemption in add_kallsyms() with PREEMPT_RT f963ef123900 module: Fix "warning: variable 'exit' set but not used" cfa94c538be6 module: Fix selfAssignment cppcheck warning 35adf9a4e55e modules: Fix corruption of /proc/kallsyms 73503963b715 module: Fix prefix for module.sig_enforce module param 7390b94a3c2d module: merge check_exported_symbol() into find_exported_symbol_in_section() cdd66eb52fda module: do not binary-search in __ksymtab_gpl if fsa->gplok is false c6eee9df57a6 module: do not pass opaque pointer for symbol search 8eac910a4934 module: show disallowed symbol name for inherit_taint() 391e982bfa63 module: fix [e_shstrndx].sh_size=0 OOB access 99bd9956551b module: Introduce module unload taint tracking 6fb0538d0121 module: Move module_assert_mutex_or_preempt() to internal.h c14e522bc76e module: Make module_flags_taint() accept a module's taints bitmap and usable outside core code 55ce556dbf92 module: Remove module_addr_min and module_addr_max 01dc0386efb7 module: Add CONFIG_ARCH_WANTS_MODULES_DATA_IN_VMALLOC 6ab9942c44b2 module: Introduce data_layout 446d55666d55 module: Prepare for handling several RB trees 80b8bf436990 module: Always have struct mod_tree_root 7337f929d567 module: Rename debug_align() as strict_align() ef505058dc55 module: Rework layout alignment to avoid BUG_ON()s 32a08c17d809 module: Move module_enable_x() and frob_text() in strict_rwx.c 0597579356fe module: Make module_enable_x() independent of CONFIG_ARCH_HAS_STRICT_MODULE_RWX 47889798da43 module: Move version support into a separate file f64205a42046 module: Move kdb module related code out of main kdb code 44c09535de47 module: Move sysfs support into a separate file 0ffc40f6c8ab module: Move procfs support into a separate file 08126db5ff73 module: kallsyms: Fix suspicious rcu usage 91fb02f31505 module: Move kallsyms support into a separate file 473c84d1856e module: Move kmemleak support to a separate file 0c1e42805c25 module: Move extra signature support out of core code b33465fe9c52 module: Move strict rwx support to a separate file 58d208de3e8d module: Move latched RB-tree support to a separate file 1be9473e31ab module: Move livepatch support to a separate file 5aff4dfdb4ae module: Make internal.h and decompress.c more compliant 8ab4ed08a24f module: Simple refactor in preparation for split cfc1d277891e module: Move all into module/

Signed-off-by: Aaron Tomlin atomlin@redhat.com

Merge request reports