Re: [PATCH v2 08/12] linux-user: don't use MAP_FIXED in pgd_find_hole_fallback

2020-07-22 Thread Richard Henderson
On 7/21/20 11:28 PM, Alex Bennée wrote: > Plain MAP_FIXED has the undesirable behaviour of splatting exiting > maps so we don't actually achieve what we want when looking for gaps. > We should be using MAP_FIXED_NOREPLACE. As this isn't always available > we need to potentially check the returned a

[PATCH v2 08/12] linux-user: don't use MAP_FIXED in pgd_find_hole_fallback

2020-07-21 Thread Alex Bennée
Plain MAP_FIXED has the undesirable behaviour of splatting exiting maps so we don't actually achieve what we want when looking for gaps. We should be using MAP_FIXED_NOREPLACE. As this isn't always available we need to potentially check the returned address to see if the kernel gave us what we aske