-
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#2641 lib gap: handle conflict maps and the brk (#2648)
Solves several remaining issues beyond what the first #2641 commit addressed: Moves the libdynamorio text-data gap filling earlier to prevent our own mmaps, such as for the brk, from landing there. Adds explicit space for the brk in the initial app mmap, to deal with top-down packing by the kernel for PIE which otherwise leaves no space for the brk. Refactors the scheme of "conflict mmaps" used for reloading libdynamorio to avoid clobbering existing mappings. Adds more sanity check asserts regarding the libdynamorio text-data gap. On a reload, properly unmaps the libdynamorio .bss, even when the kernel mis-labels it as "[heap]". Fixes #2641
- Loading branch information
1 parent
7a72ea6
commit 3f848e7
Showing
1 changed file
with
133 additions
and
59 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