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 from a2e3f78 to f0a7adc Compare December 22, 2025 18:40
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>
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 2 times, most recently from 8ee174e to ace6526 Compare December 22, 2025 18:47
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