Potential bug in dzmmap #244
Labels
A-heap
Area: Heap (including Mmapper, VMMap)
C-bug
Category: Bug
F-investigate
Call For Participation: Investigate the issue and provide more detailed direction
The use of
MAP_FIXED
flag in thedzmmap
functions means we overwrite any previous mapping that may overlap with our current request:mmtk-core/src/util/memory.rs
Line 15 in a4110d9
Although it is very unlikely to happen in 64-bits targets, it is still possible.
For example, we do not know how various
malloc
implementations use the address space, and we may overwrite their mappings.An alternative is to remove the
MAP_FIXED
flag and compare the result of mmap with our requested starting address.AFAIK, they will be the same if there is no overlaps.
The text was updated successfully, but these errors were encountered: