Linux Modules
 help / color / mirror / Atom feed
* [PATCH v4 0/3] Ignore local labels and mapping symbols during module load
@ 2026-08-20 12:50 Tiezhu Yang
  2026-08-20 12:50 ` [PATCH v4 1/3] module/kallsyms: Rename is_mapping_symbol() to is_ignored_kernel_symbol() Tiezhu Yang
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Tiezhu Yang @ 2026-08-20 12:50 UTC (permalink / raw)
  To: Petr Pavlu
  Cc: linux-modules, loongarch, Josh Poimboeuf, Nathan Chancellor,
	Namhyung Kim

This series prevents compiler generated local labels and mapping symbols
from leaking into /proc/kallsyms for loaded modules. This ensures tracing
tools like bpftrace can resolve accurate kernel stacks on architectures
like LoongArch.

Based on the latest modules-next tree:
https://git.kernel.org/pub/scm/linux/kernel/git/modules/linux.git/log/?h=modules-next

There are many discussions in the previous version, here is the link:
https://lore.kernel.org/loongarch/20260812032807.15034-1-yangtiezhu@loongson.cn/

v4:
  (1) Use is_ignored_kernel_symbol() and update
      tools/perf/util/symbol.h in patch #1
  (2) Keep using is_core_symbol() in patch #2
  (3) Update commit messages of the three patches

Cc the maintainers of the updated non-module files:
  (1) Josh Poimboeuf <jpoimboe@kernel.org> -- scripts/faddr2line
  (2) Nathan Chancellor <nathan@kernel.org> -- scripts/mod/modpost.h
  (3) Namhyung Kim <namhyung@kernel.org> -- tools/perf/util/symbol.h

Tiezhu Yang (3):
  module/kallsyms: Rename is_mapping_symbol() to
    is_ignored_kernel_symbol()
  module/kallsyms: Refactor current symbol filtering into
    is_core_symbol()
  module/kallsyms: Ignore local labels and mapping symbols during module
    load

 include/linux/module_symbol.h |  7 +++--
 kernel/module/kallsyms.c      | 59 ++++++++++++++++++-----------------
 scripts/faddr2line            |  2 +-
 scripts/mod/modpost.h         |  2 +-
 tools/perf/util/symbol.h      |  4 +--
 5 files changed, 39 insertions(+), 35 deletions(-)

-- 
2.42.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-09-01 12:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-20 12:50 [PATCH v4 0/3] Ignore local labels and mapping symbols during module load Tiezhu Yang
2026-08-20 12:50 ` [PATCH v4 1/3] module/kallsyms: Rename is_mapping_symbol() to is_ignored_kernel_symbol() Tiezhu Yang
2026-08-24  8:45   ` Huacai Chen
2026-08-25  1:39     ` Tiezhu Yang
2026-09-01 12:30   ` Petr Pavlu
2026-08-20 12:50 ` [PATCH v4 2/3] module/kallsyms: Refactor current symbol filtering into is_core_symbol() Tiezhu Yang
2026-08-20 12:50 ` [PATCH v4 3/3] module/kallsyms: Ignore local labels and mapping symbols during module load Tiezhu Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox