Instead of direct use of vm_map_insert(), call vm_map_fixed(MAP_CHECK_EXCL).
authorkib <kib@FreeBSD.org>
Mon, 6 Mar 2017 14:09:54 +0000 (14:09 +0000)
committerkib <kib@FreeBSD.org>
Mon, 6 Mar 2017 14:09:54 +0000 (14:09 +0000)
commit5c17fc300776c85205cb683066dde35495a61852
tree04cd58904f054e99639489eca688a573d17f98da
parentcb3ef41f4780acc6de2fcb13e2869d77504f1609
Instead of direct use of vm_map_insert(), call vm_map_fixed(MAP_CHECK_EXCL).

This KPI explicitely indicates the intent of creating the mapping at
the fixed address, and incorporates the map locking into the callee.

Suggested and reviewed by: alc
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
sys/kern/imgact_elf.c