lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <176113973663.2601451.416165192460763876.tip-bot2@tip-bot2>
Date: Wed, 22 Oct 2025 13:28:56 -0000
From: "tip-bot2 for Josh Poimboeuf" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Alexander Stein <alexander.stein@...tq-group.com>,
 Marek Szyprowski <m.szyprowski@...sung.com>, Mark Brown <broonie@...nel.org>,
 Cosmin Tanislav <demonsingur@...il.com>, Josh Poimboeuf <jpoimboe@...nel.org>,
 "Peter Zijlstra (Intel)" <peterz@...radead.org>,
 "Chen-Yu Tsai" <wenst@...omium.org>, Anders Roxell <anders.roxell@...aro.org>,
 x86@...nel.org, linux-kernel@...r.kernel.org
Subject: [tip: objtool/core] module: Fix device table module aliases

The following commit has been merged into the objtool/core branch of tip:

Commit-ID:     9025688bf6d427e553aca911308cd92e92634f51
Gitweb:        https://git.kernel.org/tip/9025688bf6d427e553aca911308cd92e92634f51
Author:        Josh Poimboeuf <jpoimboe@...nel.org>
AuthorDate:    Mon, 20 Oct 2025 10:53:40 -07:00
Committer:     Peter Zijlstra <peterz@...radead.org>
CommitterDate: Wed, 22 Oct 2025 15:21:55 +02:00

module: Fix device table module aliases

Commit 6717e8f91db7 ("kbuild: Remove 'kmod_' prefix from
__KBUILD_MODNAME") inadvertently broke module alias generation for
modules which rely on MODULE_DEVICE_TABLE().

It removed the "kmod_" prefix from __KBUILD_MODNAME, which caused
MODULE_DEVICE_TABLE() to generate a symbol name which no longer matched
the format expected by handle_moddevtable() in scripts/mod/file2alias.c.

As a result, modpost failed to find the device tables, leading to
missing module aliases.

Fix this by explicitly adding the "kmod_" string within the
MODULE_DEVICE_TABLE() macro itself, restoring the symbol name to the
format expected by file2alias.c.

Fixes: 6717e8f91db7 ("kbuild: Remove 'kmod_' prefix from __KBUILD_MODNAME")
Reported-by: Alexander Stein <alexander.stein@...tq-group.com>
Reported-by: Marek Szyprowski <m.szyprowski@...sung.com>
Reported-by: Mark Brown <broonie@...nel.org>
Reported-by: Cosmin Tanislav <demonsingur@...il.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@...nel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
Tested-by: Cosmin Tanislav <demonsingur@...il.com>
Tested-by: Marek Szyprowski <m.szyprowski@...sung.com>
Tested-by: Mark Brown <broonie@...nel.org>
Tested-by: Alexander Stein <alexander.stein@...tq-group.com>
Tested-by: Chen-Yu Tsai <wenst@...omium.org>
Tested-by: Anders Roxell <anders.roxell@...aro.org>
Link: https://patch.msgid.link/e52ee3edf32874da645a9e037a7d77c69893a22a.1760982784.git.jpoimboe@kernel.org
---
 include/linux/module.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/linux/module.h b/include/linux/module.h
index e135cc7..d80c3ea 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -251,10 +251,11 @@ struct module_kobject *lookup_or_create_module_kobject(const char *name);
  */
 #define __mod_device_table(type, name)	\
 	__PASTE(__mod_device_table__,	\
+	__PASTE(kmod_,			\
 	__PASTE(__KBUILD_MODNAME,	\
 	__PASTE(__,			\
 	__PASTE(type,			\
-	__PASTE(__, name)))))
+	__PASTE(__, name))))))
 
 /* Creates an alias so file2alias.c can find device table. */
 #define MODULE_DEVICE_TABLE(type, name)					\

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ