8000 linux: modules: clamp when they overlap other modules by schopin-mozilla · Pull Request #215 · rust-minidump/minidump-writer · GitHub
[go: up one dir, main page]

Skip to content

linux: modules: clamp when they overlap other modules - #215

Merged
schopin-mozilla merged 1 commit into
rust-minidump:mainfrom
schopin-mozilla:module-clamp
Sep 1, 2026
Merged

schopin-mozilla merged 1 commit into
rust-minidump:mainfrom
schopin-mozilla:module-clamp

Conversation

@schopin-mozilla
Copy link
Copy Markdown
Collaborator

This isn't a problem yet (barring user-provided data, of course) since
the procmaps approach cannot, by obstruction, generate overlapping
modules, but it will become a problem when we'll be using the DT_DEBUG
data.

Indeed, some objects are disjointed in memory, and because of that you
can have other modules inserted into the gap. In particular, on Linux
arm64, the vDSO routinely lands in the middle of ld.so segments.

It's usually benign since the latter segments are only data, not code,
and we record an error if not.

@schopin-mozilla < 8000 /div>
@schopin-mozilla
Copy link
Copy Markdown
Collaborator Author

Hmm, I tried to do the Stack PR thing but it failed, apparently it needs to be enabled at the repo level. Oh well.

In this case, DO NOT MERGE before #212 !

@gabrielesvelto gabrielesvelto left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for the last patch (given the rest will land in the previous PR)

This isn't a problem yet (barring user-provided data, of course) since
the procmaps approach cannot, by obstruction, generate overlapping
modules, but it will become a problem when we'll be using the DT_DEBUG
data.

Indeed, some objects are disjointed in memory, and because of that you
can have other modules inserted into the gap. In particular, on Linux
arm64, the vDSO routinely lands in the middle of ld.so segments.

It's usually benign since the latter segments are only data, not code,
and we record an error if not.
@schopin-mozilla
schopin-mozilla merged commit 658ff29 into rust-minidump:main Sep 1, 2026
16 checks passed
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

0