You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The map_to method of the Mapper trait is not unsafe, but it is possible to break memory safety by passing a FrameAllocator that returns frames that are already in use.
To avoid this, we should either make the map_to method unsafe or make FrameAllocator an unsafe trait.
The text was updated successfully, but these errors were encountered:
I thought about this and found another way how map_to can break memory safety: Unmap a mapped page, then map that page to an already mapped frame. A write to this page then corrupts the other page that is mapped to the same frame.
The
map_to
method of theMapper
trait is not unsafe, but it is possible to break memory safety by passing aFrameAllocator
that returns frames that are already in use.To avoid this, we should either make the
map_to
method unsafe or makeFrameAllocator
an unsafe trait.The text was updated successfully, but these errors were encountered: