From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org,atomlin@atomlin.com,akpm@linux-foundation.org
Subject: [to-be-updated] module-rename-module_blacklist-to-module_denylist.patch removed from -mm tree
Date: Thu, 24 Sep 2026 12:34:11 -0700 [thread overview]
Message-ID: <20260924193412.016AF1F00898@smtp.kernel.org> (raw)
The quilt patch titled
Subject: module: rename module_blacklist to module_denylist
has been removed from the -mm tree. Its filename was
module-rename-module_blacklist-to-module_denylist.patch
This patch was dropped because an updated version will be issued
------------------------------------------------------
From: Aaron Tomlin <atomlin@atomlin.com>
Subject: module: rename module_blacklist to module_denylist
Date: Tue, 8 Sep 2026 16:32:30 -0400
To preserve the existing user-space ABI, "module_blacklist=" is kept as a
legacy alias pointing to the same module_denylist variable.
This patch addresses the documentation by marking "module_blacklist=" as
deprecated in admin-guide/kernel-parameters.txt, and documents the new
"module_denylist=" parameter. All internal symbols, such as
module_is_blacklisted(), have been renamed to use "denylist" and all log
messages now use "denylisted".
Link: https://lore.kernel.org/20260908203230.401020-4-atomlin@atomlin.com
Signed-off-by: Aaron Tomlin <atomlin@atomlin.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Luis Chamberalin <mcgrof@kernel.org>
Cc: "Masami Hiramatsu (Google)" <mhiramat@kernel.org>
Cc: Miguel Ojeda <ojeda@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Petr Pavlu <petr.pavlu@suse.com>
Cc: Sami Tolvanen <samitolvanen@google.com>
---
Documentation/admin-guide/kernel-parameters.txt | 6 +++-
include/linux/module.h | 2 -
init/main.c | 19 +++++++-------
kernel/module/main.c | 4 +-
4 files changed, 18 insertions(+), 13 deletions(-)
--- a/Documentation/admin-guide/kernel-parameters.txt~module-rename-module_blacklist-to-module_denylist
+++ a/Documentation/admin-guide/kernel-parameters.txt
@@ -4232,7 +4232,11 @@ Kernel parameters
Note that if CONFIG_MODULE_SIG_FORCE is set, that
is always true, so this option does nothing.
- module_blacklist= [KNL] Do not load a comma-separated list of
+ module_blacklist= [KNL] (deprecated)
+ This parameter has been renamed to module_denylist=.
+ Please use module_denylist= instead.
+
+ module_denylist= [KNL] Do not load a comma-separated list of
modules. Useful for debugging problem modules.
mousedev.tap_time=
--- a/include/linux/module.h~module-rename-module_blacklist-to-module_denylist
+++ a/include/linux/module.h
@@ -879,7 +879,7 @@ static inline void module_for_each_mod(i
}
#endif /* CONFIG_MODULES */
-bool module_is_blacklisted(const char *module_name);
+bool module_is_denylisted(const char *module_name);
#ifdef CONFIG_SYSFS
extern struct kset *module_kset;
--- a/init/main.c~module-rename-module_blacklist-to-module_denylist
+++ a/init/main.c
@@ -1352,17 +1352,17 @@ static inline void do_trace_initcall_lev
extern struct initcall_modname __start_initcall_modnames[];
extern struct initcall_modname __stop_initcall_modnames[];
-/* module_blacklist is a comma-separated list of module names */
-static char *module_blacklist;
-bool __init_or_module module_is_blacklisted(const char *module_name)
+/* module_denylist is a comma-separated list of module names */
+static char *module_denylist;
+bool __init_or_module module_is_denylisted(const char *module_name)
{
const char *p;
size_t len;
- if (!module_blacklist)
+ if (!module_denylist)
return false;
- for (p = module_blacklist; *p; p += len) {
+ for (p = module_denylist; *p; p += len) {
len = strcspn(p, ",");
if (strlen(module_name) == len && parameqn(module_name, p, len))
return true;
@@ -1371,7 +1371,8 @@ bool __init_or_module module_is_blacklis
}
return false;
}
-core_param(module_blacklist, module_blacklist, charp, 0400);
+core_param(module_denylist, module_denylist, charp, 0400);
+core_param(module_blacklist, module_denylist, charp, 0400);
static const char *__init get_builtin_modname(initcall_t fn)
{
@@ -1388,10 +1389,10 @@ static void __init do_one_initcall_built
{
const char *modname;
- if (module_blacklist) {
+ if (module_denylist) {
modname = get_builtin_modname(fn);
- if (modname && module_is_blacklisted(modname)) {
- pr_info("Skipping initcall for blacklisted built-in module %s\n",
+ if (modname && module_is_denylisted(modname)) {
+ pr_info("Skipping initcall for denylisted built-in module %s\n",
modname);
return;
}
--- a/kernel/module/main.c~module-rename-module_blacklist-to-module_denylist
+++ a/kernel/module/main.c
@@ -3382,8 +3382,8 @@ static int early_mod_check(struct load_i
* Now that we know we have the correct module name, check
* if it's blacklisted.
*/
- if (module_is_blacklisted(info->name)) {
- pr_err("Module %s is blacklisted\n", info->name);
+ if (module_is_denylisted(info->name)) {
+ pr_err("Module %s is denylisted\n", info->name);
return -EPERM;
}
_
Patches currently in -mm which might be from atomlin@atomlin.com are
hung_task-reset-warning-budget-when-problem-gets-resolved.patch
hung_task-log-summary-line-when-warning-budget-is-exhausted.patch
reply other threads:[~2026-09-24 19:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260924193412.016AF1F00898@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=atomlin@atomlin.com \
--cc=mm-commits@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox