diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-10-03 16:58:23 +0900 |
---|---|---|
committer | Jessica Yu <jeyu@kernel.org> | 2019-10-07 18:25:06 +0200 |
commit | fa6643cdc5cd726b10d30eec45ff8dca267de735 (patch) | |
tree | a27b989e6ee2e6cd715764d518bb16df5c59a8ef /Makefile | |
parent | 389eb3f5f4abbdb9810458ac9b87427336ba5b91 (diff) |
module: rename __kstrtab_ns_* to __kstrtabns_* to avoid symbol conflict
The module namespace produces __strtab_ns_<sym> symbols to store
namespace strings, but it does not guarantee the name uniqueness.
This is a potential problem because we have exported symbols starting
with "ns_".
For example, kernel/capability.c exports the following symbols:
EXPORT_SYMBOL(ns_capable);
EXPORT_SYMBOL(capable);
Assume a situation where those are converted as follows:
EXPORT_SYMBOL_NS(ns_capable, some_namespace);
EXPORT_SYMBOL_NS(capable, some_namespace);
The former expands to "__kstrtab_ns_capable" and "__kstrtab_ns_ns_capable",
and the latter to "__kstrtab_capable" and "__kstrtab_ns_capable".
Then, we have the duplicated "__kstrtab_ns_capable".
To ensure the uniqueness, rename "__kstrtab_ns_*" to "__kstrtabns_*".
Reviewed-by: Matthias Maennich <maennich@google.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions