Skip to content

Conversation

@danielocfb
Copy link
Collaborator

Please see individual commits for descriptions.

@danielocfb danielocfb requested a review from anakryiko December 19, 2025 14:21
@danielocfb danielocfb force-pushed the topic/kernel-mod-syms branch 4 times, most recently from 5941d58 to a2e3f78 Compare December 19, 2025 14:46
@d-e-s-o d-e-s-o force-pushed the topic/kernel-mod-syms branch 3 times, most recently from 8ee174e to ace6526 Compare December 22, 2025 18:47
Add a parser for /proc/modules style files, ModMap. /proc/modules
contains information about memory ranges of modules. We need such
information in order to understand which module a given kernel address
belongs to. On top of just parsing contents, objects of this type
provide the means for querying the module name that an address belongs
to, if any.

Signed-off-by: Daniel Müller <deso@posteo.net>
Add logic for parsing depmod binary files. These files basically
contain a search tree for efficiently looking up module paths (relative
to a base directory) given a module name. Making such a lookup possible
enables the loading of module binaries, which may contain DWARF debug
information for symbolization that resolves source code information (as
opposed to /proc/kallsyms, which only has limited function granularity
for addresses).

Signed-off-by: Daniel Müller <deso@posteo.net>
Add support for looking up and incorporating DWARF information for
symbolization of kernel module addresses. So far we have only supported
using DWARF for addresses belonging to the core kernel. We rely on the
previously introduced /proc/modules map for deciding whether an address
belongs to a kernel module. We then use the depmod file for looking up
the kernel module, optionally taking into account debug links as usual.

Signed-off-by: Daniel Müller <deso@posteo.net>
@d-e-s-o d-e-s-o force-pushed the topic/kernel-mod-syms branch from ace6526 to c724915 Compare December 26, 2025 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants