-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#5463: Avoid globals pre-relocation
Fixes errors that can lead to crashes in relocate_dynamorio, where its access to a function pointer and to the page size can both return garbage pre-relocation. We solve this with assembly to get the current PC, and just using a 4K minimum page size for the backward walk. Tested with the PR #5462 branch where the new client.attach_blocking test crashes without this fix on AArch64. Manually tested on arm as well. Fixes #5463
- Loading branch information
1 parent
19af000
commit d6a5486
Showing
2 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters