-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LinuxAllocator: Fixes bug with old kernels and hint allocation
In the face of an application using MAP_FIXED_NOREPLACE AND the host linux kernel doesn't understand this flag. Then we were falling down the hint allocation path which would allocate a pointer in 64-bit space, returning this pointer to a 32-bit userspace and breaking things. Now when the hint fails with this flag, we know that it intersecting a range and can early exit.
- Loading branch information
1 parent
fa554d3
commit 23daf4c
Showing
1 changed file
with
19 additions
and
5 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