Alex Bennée 2667e069e7 linux-user: don't use MAP_FIXED in pgd_find_hole_fallback
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 asked for.

Fixes: ad592e37dfc ("linux-user: provide fallback pgd_find_hole for bare chroots")
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200724064509.331-9-alex.bennee@linaro.org>
2020-07-27 09:41:18 +01:00
..
2020-01-06 18:41:32 +04:00
2019-08-16 13:31:52 +02:00
2016-06-07 18:19:23 +03:00
2017-10-16 20:57:13 +03:00
2016-10-26 08:29:01 -07:00
2020-02-19 11:17:40 +01:00
2019-09-11 08:46:17 +02:00
2020-07-07 14:54:29 +02:00
2018-09-26 08:55:54 -07:00
2019-04-18 22:18:59 +02:00
2019-08-16 13:31:52 +02:00
2020-02-22 08:26:47 +00:00
2018-01-16 14:54:50 +01:00
2016-02-23 12:43:05 +00:00
2018-08-24 20:26:37 +02:00
2016-09-15 15:32:22 +03:00
2018-12-20 10:29:08 +01:00
2017-01-24 23:26:52 +03:00