On Mon, 31 Jul 2023 at 09:04, Akihiko Odaki <akihiko.od...@daynix.com> wrote: > > MAP_FIXED_NOREPLACE can ensure the mapped address is fixed without > concerning that the new mapping overwrites something else.
MAP_FIXED_NOREPLACE only came in with Linux 4.17. So I think we still need to handle the "mapped address is not the one we asked for" error condition, because it can happen on older host kernels that ignore the MAP_FIXED_NOREPLACE flag. thanks -- PMM